Mariadb JDBC Driver from DbSchema

About JDBC Drivers

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

Each JDBC driver is using a specific URL. The URL is a string passed to the driver, formatted in a way which is decided by the team who bild the driver, and which usually includes information about the database host, port and database name.

MariaDb JDBC Driver

  • Required File(s): mysql-connector-java-nn-bin.jar
  • Java Driver Class: com.mysql.jdbc.Driver
  • URL: jdbc:mysql://{HOST}[:{PORT}][/{DB}]
  • Website: MySQL

Alternative to installing DbSchema you may download the Mariadb driver using this link. The driver files are compressed in a zip file.

Please write us for any question or issue with the driver.

Enable Remote Access on MariaDb Server

By default MariaDb does not allow connecting from another machine as the one where the server is installed. You can enable remote access during installation ( see the next chapter ) or later using the instructions below.
  • On the server type in the command prompt or terminal mariadb -u root -p <root_password> The mariadb console should start.
  • List the databases using show databases
  • View the configured grants using select * from db;
  • Enable remote access for a user foo using GRANT ALL ON foo.* TO bar@'' IDENTIFIED BY 'PASSWORD'; Here you have to edit the user ( put your user instead of foo ), the IP of the client machine and the root password.
If this didn't help, please try to search the web for tutorials.

MariaDb Installation Tips

Install MariaDb from During installation go for a detailed install, and when you are prompted for the user password check the 'Enable root access from remote machines'.

Configure MariaDb to allow remote connections

Enabling this you will be allowed to connect to MariaDb from another computer. Remember the password you set here, it will be requested when connecting to the database as user root.

Download Mariadb JDBC Driver

Free download and install DbSchema to get the JDBC driver and test connectivity to Mariadb.

  1. Download and install DbSchema.
  2. Start DbSchema and choose 'Reverse engineer the schema from database'. This will pop-up the database connection dialog.
  3. Try to connect to the database.
  4. The JDBC driver can be found in the home directory '.DbSchema/drivers' or in the DbSchema installation 'drivers' folder.
  5. The connection URI can be found in the connection dialog 'Advanced' tab.

Download DbSchema

Connect to Mariadb from DbSchema

Start DbSchema, choose 'Connect to database' and in the connection dialog choose 'Mariadb' 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 Mariadb 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 Mariadb using DbSchema database tool

Connectivity Troubleshooting

If you get problems connecting to database, please remember :
  • Enable Remote connections as they not always enabled by default. This may require configuration changes.
  • Make sure the host is reachable. From the connection dialog you can ping the database host ensure the configured port is reachable.
  • Windows Firewall may block the communication. You may need to reconfigure or disable it.
  • 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 Diagrams for Mariadb

Database diagram

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

Read more »

Get Started for Free

Mariadb 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 »

Mariadb 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 »

Mariadb 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 »

Mariadb 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 »