Mongodb JDBC Driver & Database Designer

What are the JDBC Drivers ?

JDBC drivers are files with the extension .jar used by Java applications to connect to the database. Usually they are provided by the same company which implemented the Mongodb software. DbSchema installation kit already include an Mongodb driver.

Each JDBC driver is using a specific URL. The URL is a string passed to the driver, formatted in a given way, including the host, port and database where to connect.

Open-Source MongoDb JDBC Driver

Details about DbSchema query language for MongoDb and features can be read here.

DbSchema can connect to MongoDB using an its own open source JDBC driver. The project source code is posted on BitBucket.

The driver is written on top of the standard MongoDb Java driver.

A binary version of the driver can be downloaded here.

Download Mongodb JDBC driver

The driver URL is the same as in the MongoDb documentation just prefixed by jdbc:
Example :

jdbc:mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]

The URL allows connecting to multiple databases. In DbSchema you can set this by choosing 'Custom URL' in the connection editor and entering the URL as string. For URL details check the MongoDb documentation.

Video Presentation

About DbSchema Database Designer

DbSchema is a Mongodb database designer based on Java JDBC drivers.

DbSchema features interactive diagrams, schema management, schema compare and synchronize, relational data browse, visual query builder, query editor, random data generator, forms and reports and more.

DbSchema can be evaluated 15 days for free.

Download & Evaluate Buy DbSchema

Connect to Mongodb using DbSchema

Start DbSchema, choose 'Connect to database' and in the connection dialog choose 'Mongodb' from the database combo. There you can upload the JDBC driver. For a limited list of databases the drivers are already included.

Next step is to fill in the connection dialog the database host, port, username and password.

  • The host is the name or the IP address of the machine where the database is running. If the database is running on the same machine as DbSchema, this will be localhost.
  • The port is a number, a kind of 'door' where the database listen for requests. This has a default value which DbSchema will set for you. If the database administrator choose a different port, you may have to enter the correct value
  • Database username is the user to login into the database. DbSchema may enter by default the most user for each database. If this is not correct, check the database documentation for this. Usually during Mongodb installation you are informed about the username.
  • Database password for the database user, is set inside the database.
DbSchema will replace this values in the JDBC URL string, will send this to server and try to connect.

Connect to Mongodb using DbSchema database tool

Connectivity Troubleshooting

If you get problems connecting to database, please remember :
  • Windows Firewall may block the communication. You may need to reconfigure or disable it.
  • Remote connections are not always enabled by default. MySql lets you, for example, to enable them during the database software installation.
  • Make sure the host is reachable. From the connection dialog you can ping the database host ensure the configured port is reachable.
  • Check the driver version is compatible with the database software. It may be that DbSchema provided JDBC driver is not the latest version. Please inform us in this case.
Learn more about how to connect to database from the DbSchema help.
 
DbSchema Video Presentation

Mongodb Diagram Designer

Database diagram

DbSchema is an Mongodb designer, featuring interactive diagrams, relational data browse and editor, visual query builder, query editor, random data generator, forms and reports and more.

Read more »

DbSchema can be evaluated 15 days for free. Download DbSchema Buy DbSchema

Mongodb Relational Data Browse

Relational Data Browse

An amazingly simple data explorer that offers simultaneous views of data from multiple tables and features numerous filters, data sorting mechanisms, and much more.


Read more »

Mongodb Visual Query Builder

Query Builder

Graphically SQL query editor, with different joins, exists, where clauses and group by. The query is represented as a diagram, simple and intuitive to use.


Read more »

Mongodb Schema Synchronization

Database Schema Synchronization

DbSchema holds its own image of the schema. This can be synchronized against any database, modification scripts can be generated.


Read more »

Mongodb HTML 5 Documentation

HTML5 Documentation

Generate HTML documentation including the vector diagram image. The image is interactive, move the cursor over column names or columns to read the comments.


Read more »

Navigation