Download MariaDb JDBC Driver

What Is a JDBC Driver?

A JDBC driver is a Java library file (.jar) that enables Java applications to communicate with a database. The JDBC is a standard interface implemented by each database with a specific driver. Drivers are typically distributed by the database vendor or as open-source projects.

Understanding the JDBC URL

The connection parameters including the database location, database name and connection method are passed to the driver using the JDBC URL. The JDBC URL is a text starting with 'jdbc:...' which combines the hostname, port, database name, and any driver-specific parameters. The exact syntax can be different for each JDBC driver.

The MariaDb JDBC Driver

MariaDB is a community-developed, drop-in replacement for MySQL, created by MySQL's original developers after Oracle's acquisition. It adds features like Galera clustering, ColumnStore storage engine, and more advanced replication options while maintaining full MySQL compatibility.

The MariaDB JDBC URL

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

Download MariaDb JDBC Driver

The driver archive is a zip file. Extract it and load the .jar files using DbSchema's Driver Manager.

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@'202.54.10.20' 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 http://www.mysql.com. 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.

DbSchema and MariaDB

Because MariaDB is wire-compatible with MySQL, DbSchema connects using the MySQL JDBC driver and renders all InnoDB tables, foreign keys, and indexes in the ER diagram. Use Schema Synchronization to generate MariaDB-specific DDL including COLLATION and ENGINE clauses.

DbSchema Database Designer

Test the JDBC Driver using DbSchema

Get to your first ER diagram in minutes. No account, no credit card.

1
Install DbSchema in minutes

DbSchema is free. Download the installer for Windows, macOS, or Linux and start DbSchema. No signup required.

2
Connect or open a sample

Reverse engineer an existing database or open a sample model to explore tables, relations, and indexes visually.

3
Design, document, deploy

Edit your schema, generate interactive documentation, and roll out reviewed changes across environments.

Explore MariaDb Visually with DbSchema

Once the JDBC driver is configured, DbSchema connects to your MariaDb database and gives you a full graphical workbench — no command-line required. Available as a free Community Edition and a full-featured PRO Edition. No registration needed to get started.

Interactive ER Diagrams

Reverse-engineer your MariaDb schema into a drag-and-drop ER diagram. Arrange tables visually, add new columns, define foreign keys, and let DbSchema generate the DDL — all without writing SQL by hand.

Interactive ER diagram for MariaDb in DbSchema

Visual Query Builder

Compose MariaDb queries by clicking on tables and columns — no SQL knowledge required. Add joins, filters, groupings, and aggregations through a point-and-click interface, then copy the generated SQL or run it directly against the live database.

Visual query builder for MariaDb in DbSchema

Relational Data Explorer

Browse MariaDb table data and follow foreign key relationships across tables in a single view. Edit cells inline, filter rows, and paginate through large datasets — all without leaving the explorer.

Relational data explorer for MariaDb in DbSchema

Schema Synchronization

Compare your MariaDb schema across development, staging, and production environments. DbSchema generates the exact ALTER statements needed to close the gap and lets you review every change before executing — reducing the risk of unintended schema drift.

Schema synchronization for MariaDb in DbSchema

SQL Editor

Write and execute MariaDb queries in the integrated SQL editor with schema-aware autocomplete, syntax highlighting, and instant result display. Run scripts, inspect execution plans, and export results to CSV or JSON from a single interface.

SQL editor for MariaDb in DbSchema

HTML Schema Documentation

Generate a static HTML site documenting every table, column, type, index, and relationship in your MariaDb schema. Share it with your team or embed it in your project wiki — no extra tooling required.

Schema documentation generator for MariaDb in DbSchema

For the full feature list and edition comparison, visit the DbSchema PRO Edition page.

Go deeper with MariaDb in DbSchema

ER diagrams, Git-based versioning, random data generator, and HTML schema docs.