DbSchema is a powerful database management and design tool for MongoDB. It offers features such as visual schema design, team collaboration with GIT, schema deployment and HTML schema documentation.
Choose "Connect to the database" or "New Model Connected to the Database" will let you select your database and open the Connection Dialog.
DbSchema automatically downloads the JDBC driver to connect to your database.
In the Connection Dialog window, select the JDBC URL you want to connect with. If your database is running in the cloud, choose Edit Manually and insert the JDBC URL from the cloud console.
Enter the host name, the authentication details, select your database as described in the Connection Dialog page.
DbSchema can connect to MongoDb using the native MongoDb Java URI, by choosing 'Manually Edit JDBC URL'. Without this option you can entering the host, port, etc. and DbSchema will compose the JDBC URL.
You can connect using the Java URI as in MongoDb documentation.
In the DbSchema Connection Dialog choose 'Manual Edit JDBC URL'.
You may connect to multiple hosts and use custom parameters.
The connection parameters are described in the MongoDB documentation.
In the Atlas console choose 'Connect Cluster' to find the Java URI connection string.
There choose 'Connect using Application' and 'Java' latest version.
Copy the URL in the DbSchema 'Manual Configure JDBC URL' filed.
This is the same procedure as in the chapter above.
In the connection dialog you can enter the host, port, user and password ( by default not required ). From the Driver combo you can choose between connecting without authentication and with authentication.
The connection without authentication is the default one, unless you or an admin have set authentication on the server.
To add additional connectivity parameters and SSL/TLS, please press 'Manually Edit JDBC URL' and add parameters like in the MongoDB Java Driver Documentation. Use '&' as separator. The main parameters you can use:
keytool -importcert -trustcacerts -file <path to certificate authority file>
-keystore <path to trust store> -storepass <password>
A typical application will also need to set several JVM system properties to ensure that the client presents an TLS/SSL certificate to the MongoDB server:
The connection without authentication is the default one, unless you or an admin have set authentication on the server.
use admin db.createUser( { user: "test", pwd: "test", roles: [ { role: "root", db: "admin" } ] } );
# Basic database configuration dbpath = C:\data\db bind_ip = 127.0.0.1 port = 27017 # Security auth = true # Administration & Monitoring nohttpinterface = true