Skip to content

Connect MariaDB

Detailed guide for connecting MariaDB to Data Explorer, including SSL configuration, Docker setup, and common troubleshooting.

🦭Engine

MariaDB

Default Port

3306

Protocol

mariadb://

Strategy

Pooled Adapter

How to Connect

To connect to MariaDB, you have two options: use a Connection URI or fill in the structured connection form.

Method 1: Connection URI

The fastest way is to paste the connection URI directly. Data Explorer will automatically parse the host, port, username, password, and database name from the URI.
URI Format

# General format

mariadb://root:password@localhost:3306/mydb

Method 2: Connection Form

Open the Connection Explorer sidebar (left panel), click the plus (+) icon, select MariaDB. Fill in the following fields:
HostlocalhostIP address or hostname of the database server
Port3306Default port: 3306
UsernamerootLogin user with database access
Password••••••Password (AES-256 encrypted before storage)
DatabasemydbDatabase name you want to explore
Connection Guardrails
Each connection can be enhanced with a set of protection policies (Guardrails) to mitigate risks of accidental data modification.
Read Only
Allows only SELECT. Blocks all data modifications.
Block Schema
Prevents ALTER, DROP, or RENAME table commands.
Safe Guard
Enables backend-grade deep SQL Guard filtering.
Restricted IO
Disallows raw data Import/Export operations.
SSH Tunneling (Secure)
If your database is behind a firewall, you can use an SSH Tunnel. Data Explorer now integrates SSRF Guard to block dangerous internal IP connections through the tunnel.
  • Supports authentication via password or Private Key (OpenSSH format).
  • Automatic destination IP validation (SSRF Protection).
  • Periodic tunnel health checks to maintain connectivity.

Supported Features

Here is the complete list of introspection features Data Explorer supports for MariaDB:
  • MySQL drop-in strategy with connection pooling
  • Views, functions, and function parameter browsing
  • Full INFORMATION_SCHEMA introspection
  • Per-connection TLS toggle for servers without SSL
  • Guarded row updates with parameterized SQL
  • Health checks via SELECT 1

Internal Introspection Query

When you successfully connect, Data Explorer automatically runs introspection queries to analyze the database structure. Here's the basic query the system runs behind the scenes for MariaDB:
MariaDB Introspection

# Table structure analysis query

SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, IS_NULLABLE

FROM INFORMATION_SCHEMA.COLUMNS

WHERE TABLE_SCHEMA = DATABASE()

ORDER BY TABLE_NAME, ORDINAL_POSITION;

Docker Quick Start

If you don't have MariaDB on your machine yet, the fastest way is to use Docker to create a test instance:
Terminal

# Start MariaDB container

docker run -d \

--name data-explorer-mariadb \

-e MARIADB_ROOT_PASSWORD=secret123 \

-e MARIADB_DATABASE=dev_database \

-p 3306:3306 \

mariadb:11

Advanced Tuning

Connection Pooling

By default, the system maintains a connection pool to optimize response speed. For databases with limited sessions (like Supabase Free Tier), consider reducing the timeout to free up connections faster.

SSL/TLS Handshake

The system supports SSL Modes "prefer" and "require". For connections requiring custom CA certificates, you need to mount the certificate file into the /certs directory of the backend server.

Security Note

Remote MariaDB servers that reject SSL handshakes can be connected by turning the TLS toggle off in the connection form.

Ready to explore data?

Join the community on GitHub to contribute to the smartest local database IDE.

Launch App