MARIADB
SQL

How to Connect to and Work with MariaDB in DbVisualizer (2026 Guide)

intro

In this guide, we will walk you through how best to work with MariaDB using a popular SQL client: DbVisualizer.

Tools used in the tutorial
Tool Description Link
Dbvisualizer DBVISUALIZER
TOP RATED DATABASE MANAGEMENT TOOL AND SQL CLIENT
mariadb MARIADB
THE MARIADB DATABASE

Welcome to this guide on how to work with MariaDB using DbVisualizer! This MariaDB guide will act as a quick start guide to one of the most popular relational databases you will find yourself working with using the tool.

You will need a server with access to MariaDB and basic knowledge of DbVisualizer!

Quick Start

To begin with, to start working with MariaDB using DbVisualizer, you’re going to need:

  1. A server with MariaDB (not MySQL!) running on it. In case you’re testing, remember that a local server is also a server!
  2. Credentials to your MariaDB server instance somewhere nearby.
  3. Access to a complete MariaDB SQL client like DbVisualizer (which also supports 50+ other databases).

To begin working with MariaDB using DbVisualizer, ensure that MariaDB is running.

For Linux or macOS users, verify that with:

Copy
        
1 systemctl mariadb status

If you see “Active: active (running),” it means your local MariaDB server is running.

Windows and macOS users will have ensure that the MariaDB server is running by using one of the many available OS-specific options.

Next up, you’re going to need a free or a Pro license of DbVisualizer. For the Pro version, downloading and installing DbVisualizer as an evaluation trial should do the trick. Otherwise, just download the tool for free. If you’re already a user, you can skip this step.

After you’ve installed DbVisualizer, open the tool, then turn your eyes to the left side of the tool and open the ”+” dropdown below the “Databases” tab. Then, select the “Create Database Connection…” option:

Selecting the Create Database Connection… option in DbVisualizer
Selecting the “Create Database Connectionu2026” option in DbVisualizer

Then, find MariaDB in the list, connect to your database, and you should be good to go. For more guidance, refer to the following chapter.

Full Walkthrough: Step-By-Step Guide

After clicking the “Create a Database Connection…” option, find “MariaDB” in the database driver list. Click on it:

Selecting the MariaDB database connection option in DbVisualizer
Selecting the “MariaDB” database connection option in DbVisualizer

After you find the MariaDB driver, you will be asked to provide authentication credentials for your MariaDB server. Do that as follow:

Inserting the credentials and connecting to MariaDB using DbVisualizer
Inserting the credentials and connecting to MariaDB using DbVisualizer

In this example, we’ve used MariaDB as the database with localhost as our database server. We’ve also used the default authentication method with the root username and no password in place.

Note: In your case, credentials will be different (you’re not using root without a password in production, are you?), so please replace credentials with your credentials.

Also, consider replacing the default port with 3307 (Remember: 3306 marks MySQL, while 3307 marks MariaDB.) If you don’t that, DbVisualizer will warn you:

A sarning issued by DbVisualizer to inform you about the database port
A sarning issued by DbVisualizer to inform you about the database port

You will still be able to connect as DbVisualizer will understand both 3306 and 3307. However, just in case you want to make sure you’re connecting to MariaDB and not MySQL, replace the port.

Once you’re done connecting, you will see a message under the connection settings and a green tick on the MariaDB instance on the left:

Weve connected to MariaDB using DbVisualizer
We’ve connected to MariaDB using DbVisualizer

Now, you’re ready to work with MariaDB using DbVisualizer. Head over to the left side and expand available options. Your databases (and the tables within) should be there:

Exploring the internals of MariaDB using DbVisualizer
Exploring the internals of MariaDB using DbVisualizer

You’re also ready to dig into and query MariaDB using the SQL Editor feature from DbVisualizer:

Querying MariaDB using the SQL Client within DbVisualizer
Querying MariaDB using the SQL Client within DbVisualizer

Alternative Ways to Connect to MariaDB Using DbVisualizer

Providing a username and a password isn’t the only way to connect to and work with MariaDB using DbVisualizer. One of the alternative ways to connect to MariaDB using the tool would be to use SSH instead of a username and a password.

To do that, we need to create an SSH configuration when setting up a MariaDB database connection:

Connecting to MariaDB via SSH
Connecting to MariaDB via SSH

Once you chose to use SSH to connect to DbVisualizer, you will have to define an SSH host, a port, and the UserID you will use to connect to MariaDB.

Notice that DbVisualizer provides you with the ability to change the authentication type for SSH. On To do this, select the “Tools > Tools Properties…” option from the top menu:

Selecting the Tools Properties… option
Selecting the “Tools Propertiesu2026” option

In the “Tool Properties” modal, select the “SSH Configurations” option. Here, you can choose from authentication via “Password” to authentication via other means (using a “Public Key” or an “SSH Agent”):

Creating an SSH configuration in DbVisualizer
Creating an SSH configuration in DbVisualizer

All the remaining aspects are the same as usual. Provide the details, connect to MariaDB, and you’re good to go!

Configuration Options

In the same “Tool Properties” modal, you will also see a “Permissions” tab on the left-hand side. If you click on it, you will be able to configure what happens once you run certain queries with that specific connection. There are 3 actions that can be taken and they are as follows:

  1. “Allow” means that DbVisualizer will allow the execution of an SQL query to complete without interfering.
  2. “Ask” means that DbVisualizer will ask whether you really want to execute that specific query before it’s executed.
  3. “Deny” means that DbVisualizer will deny the execution of that type of query.
Permissions in DbVisualizer
Permissions in DbVisualizer

Aside from permissions, you can also set settings for files loaded in the database client, set the time zone format (see the “Data Formats > Time Zone” option), and more:

Changing the Default File Encoding in DbVisualizer
Changing the Default File Encoding in DbVisualizer

DbVisualizer also enables you to customize how the variables in the tool are used/presented:

Variables in DbVisualizer
Variables in DbVisualizer

There are various other options, too. Some of these have do with the formatting of your SQL queries:

The Formatting of SQL Queries Using DbVisualizer
The Formatting of SQL Queries Using DbVisualizer

To see more of the available configuration options, turn to the left side of the “Tool Properties” menu.

Troubleshooting MariaDB Connection and Usage in DbVisualizer

The most common errors related to the usage of MariaDB in DbVisualizer include, but are not limited to the following:

MariaDB ErrorSolution
DbVisualizer responds with the following error:
Socket fail to connect to localhost:1242. Connection refused: getsockoptMake sure that you’ve specified the correct port when trying to connect to MariaDB: 3307.
You’ve set up MariaDB within DbVisualizer but your authentication credentials have changed.Right-click on the MariaDB connection in question on the left-hand side and click on “Edit Database Connection(s)…” option, then specify the right credentials.
Your MariaDB Server is not running: it’s impossible to connect to MariaDB using any SQL client.Ensure your MariaDB Server is up and running. systemctl status mariadb will do.
The user you’re using is not privileged to insert/update/select data in MariaDB.Ensure that the user you’re using to access MariaDB has all of the necessary privileges to perform necessary actions:
SHOW GRANTS FOR 'username'@'host'; will do.
SSL/TLS requirements are not met.If SSL is required, make sure SSL certificates are configured in DbVisualizer.
JDBC DriversEnsure that DbVisualizer can download drivers by navigating to “Tools > Driver Manager” modal.
Review Error MessagesDbVisualizer will always display any error messages if the connection or queries have failed. Observe them and act accordingly.

Appendix

Sample SQL Query to Create Tables in a Database

To create a table in MariaDB, you’ll need to make use of the CREATE TABLE SQL statement:

Copy
        
1 CREATE TABLE `table_name` ( 2 `column` DATATYPE(length) [NULL DEFINITION|DEFAULT DEFINITION|PRIMARY KEY DEFINITION] 3 );

The idea here is to replace table_name with the name of the table that you want to create, column with the column name, DATATYPE(length) with the data type (VARCHAR, INT, TEXT, etc.) and the length with the length of the column (keep in mind that this feature is deprecated in newer releases of MySQL/MariaDB), and specify any definitions afterwards (whether the column is nullable, has a default value, etc. Alternatively, you can also rely on DbVisualizer's guided table creation interface.

JDBC URL Format for MariaDB

When it comes to the JDBC URL formats for MariaDB, they generally follow quite a standard pattern similar to that of JDBC URL’s used by MySQL. Here’s one of the most common occurrences (if the port is omitted, it defaults to 3306):

Copy
        
1 jdbc:mariadb://hostname:port/databaseName[?useSSL=true]

Key MariaDB File Locations

  • The MariaDB configuration file can be found either in the /etc/mariadb/, /etc/mysql or /var/lib/mysql directory.
  • The data directory for MariaDB is located at the /var/lib/mysql directory.
  • The Unix socket for connections can be found at the /var/run/mysqld/mysqld.sock or /var/run/mariadb/mysqld.sock locations.

Overall, many of the key MariaDB file locations overlap by the key file locations offered by MySQL.

Glossary

  • Driver type: JDBC software bridge between DbVisualizer and MariaDB.
  • Driver properties: Optional JDBC parameters you can tweak in DbVisualizer (socketTimeout, tcpKeepAlive, etc.).
  • SSH tunnel: Secure channel that forwards the traffic forwarded to MariaDB.
  • SSL/TLS: The encryption layer for secure client-server communication.
  • MFA (Multi-Factor Authentication): A way to authenticate a user using multiple authentication methods besides a password (e.g. a password and a four-digit ID sent to a phone, etc.)
Dbvis download link img
About the author
LukasVileikisPhoto
Lukas Vileikis
Lukas Vileikis is an ethical hacker and a frequent conference speaker. He runs one of the biggest & fastest data breach search engines in the world - BreachDirectory.com, frequently speaks at conferences and blogs in multiple places including his blog over at lukasvileikis.com.
The Table Icon
Sign up to receive The Table's roundup
More from the table
Title Author Tags Length Published
title

Proprietary vs. Open Source Database Tools: A Comparison

author Lukas Vileikis tags SQL 4 min 2026-10-26
title

SQL Interview Questions and Answers: Part 3: Tackling Advanced Scenarios

author Lukas Vileikis tags SQL 8 min 2026-10-05
title

How to Delete Duplicate Rows in SQL?

author Lukas Vileikis tags SQL 6 min 2026-09-21
title

SQL vs NoSQL Databases: A Practical Guide to Choosing the Right Database for Your Use Case

author Leslie S. Gyamfi tags Database system NOSQL SQL 13 min 2026-09-14
title

SQL for Data Analytics: 5 Advanced Techniques You Should Know

author Lukas Vileikis tags MySQL SQL 5 min 2026-09-07
title

Understanding and Using the MOD Function in SQL

author Antonello Zanini tags MySQL ORACLE POSTGRESQL SQL SQL SERVER 8 min 2026-08-31
title

Ensuring HIPAA Compliance in a Changing Data Landscape

author Lukas Vileikis tags SQL 5 min 2026-08-24
title

What Is a Composite Key in SQL and When to Use It

author Antonello Zanini tags MySQL ORACLE POSTGRESQL SQL SQL SERVER 8 min 2026-08-17
title

Best Practices for Using Git with Your Database

author Lukas Vileikis tags SQL 6 min 2026-07-27
title

Top 10 Features in DbVisualizer Not Supported by phpMyAdmin

author Lukas Vileikis tags MARIADB MySQL 6 min 2026-07-20

The content provided on dbvis.com/thetable, including but not limited to code and examples, is intended for educational and informational purposes only. We do not make any warranties or representations of any kind. Read more here.