IDEA connects to Dameng database

To connect to Dameng database in IntelliJ IDEA, you can follow the steps below:

1. Open IntelliJ IDEA and enter the project.
2. On the top menu bar, select "View" -> "Tool Windows" -> "Database" to open the database tool window.

 

3. In the database tool window, click the "+" icon in the upper right corner and select Driver.

 Then add the loader

 The default format is as follows

default    jdbc:dm://{host::localhost}?[:{port::5236}][/{database}?]

 After the addition is complete, click OK and open again to select datasource

 Add a data source in the upper left corner of the old

4. In the pop-up dialog box, fill in the following information:
   - General:
     - Name: The name of the database connection, which can be customized.
   - Database:
     - Host: The hostname or IP address of the database server.
     - Port: The port number of the database server.
     - Database: Database name.
   - Credentials:
     - User: Database username.
     - Password: Database password.
   - Advanced:
     - Driver: Select "DmDriver".
     - URL: Fill in according to the connection URL of Dameng database, for example `jdbc:dm://localhost:5236/database_name`. I wrote as follows

jdbc:dm://localhost:5236


5. Click the "Test Connection" button to test whether the database connection is successful.
6. Click "OK" to complete the database connection configuration.

After the configuration is complete, you can view and manage the tables, data and other information of the Dameng database in the database tool window of IntelliJ IDEA, and use the database connection for development and debugging operations during the development process.

Guess you like

Origin blog.csdn.net/lps12345666/article/details/131745048