Start the DbVisualizer application and navigate to the menu path: Tools > Driver Manager...
Click the plus icon (or menu path Driver > Create Driver)
- For the Name: field, enter DocumentDB
- For the URL Format: field, enter
jdbc:documentdb://<host>[:<port>]/<database-name>[?<option>=<value>[&<option>=<value>[...]]]
- Click the folder button on the right. Navigate to the location of your downloaded Amazon DocumentDB JDBC driver JAR file. Select the file and click the Open button.
- Ensure the
software.amazon.documentdb.jdbc.DocumentDbDriver
is selected in the Driver Class: field. Your Driver Manager settings for DocumentDB should look like the following image. - Close the dialog. The DocumentDB JDBC driver will be setup and ready to use.
- If connecting from outside the DocumentDB cluster's VPC, ensure you have setup an SSH tunnel.
- Navigate the menu path Database > Create Database Connection.
- For the Name field, enter a descriptive name for the connection.
- For the Driver (JDBC) field, choose the DocumentDB driver you created earlier.
- For the Database URL field, enter your JDBC connection string.
For example,
jdbc:documentdb://localhost:27017/database?tlsAllowInvalidHostnames=true
- For the Database Userid field, enter your Amazon DocumentDB user ID.
- For the Database Password field, enter the corresponding password for the user ID.
- Your Database Connection dialog should look like the following.
- Click the Connect button to make the connection to your Amazon DocumentDB database.