QoreDB LogoQoreDB

MySQL & MariaDB

Connect QoreDB to MySQL, MariaDB and any MySQL-compatible service. Same driver, same DSN format.

QoreDB connects to MySQL and MariaDB through a single driver. The two engines speak the same wire protocol, so the connection flow, the DSN format and the SSL options are identical.

Quick connect

The fastest way is to paste a DSN. QoreDB recognizes the mysql:// scheme.

mysql://USER:PASSWORD@HOST:3306/DATABASE
mysql://USER:PASSWORD@HOST:3306/DATABASE?ssl-mode=REQUIRED

Open New Connection, choose MySQL/MariaDB, paste the URL, click Test connection, then Save.

Connection fields

If you prefer the form, fill these fields directly:

FieldRequiredNotes
HostYesHostname or IP address.
PortYesDefaults to 3306.
UserYesMySQL user.
PasswordOptionalStored encrypted in the vault.
DatabaseOptionalDatabase name. Optional if your user has privileges on multiple databases.
SSL modeOptionalOne of disabled, preferred, required, verify-ca, verify-identity.

The SSH tunnel section is available if your database is behind a bastion. See SSH tunneling.

SSL / TLS modes

MySQL has its own naming for SSL modes; the underlying behavior maps roughly to the equivalent PostgreSQL modes.

ModeEncrypted?Server cert checked?Server hostname checked?
disabledNoNoNo
preferredIf offeredNoNo
requiredYesNoNo
verify-caYesYesNo
verify-identityYesYesYes

For production traffic over the public internet, verify-identity is the safest default. required is acceptable on a trusted private network.

You can pass the mode either through the form (SSL mode dropdown) or as a ?ssl-mode=… parameter on the URL.

MySQL vs MariaDB

The driver is the same. A few practical differences worth knowing:

  • Authentication plugins: MySQL 8 defaults to caching_sha2_password, MariaDB defaults to mysql_native_password. QoreDB handles both, but if your client tooling is older and you see authentication errors against MySQL 8, you may need to change the user's authentication plugin server-side (ALTER USER … IDENTIFIED WITH mysql_native_password BY …) or upgrade.
  • JSON type: both engines have a JSON type but with slightly different functions (JSON_EXTRACT vs MariaDB's JSON_VALUE). Queries that rely on these functions are not portable between the two.
  • Character set: MySQL 8 defaults to utf8mb4. MariaDB up to 10.5 defaults to utf8mb3; from 10.6+ also utf8mb4. If you see mojibake or "Incorrect string value" errors, check the connection's character set and the column's collation.

MySQL-compatible providers

The following services use the MySQL wire protocol and connect through this driver:

  • PlanetScale: paste the connection string from your dashboard. PlanetScale enforces TLS, so use ?ssl-mode=REQUIRED (or higher).
  • AWS RDS for MySQL/MariaDB: standard mysql:// DSN. RDS instances accessed from outside the VPC need either public access enabled or a tunnel. SSL is recommended.
  • Aiven, DigitalOcean Managed MySQL, Google Cloud SQL: standard MySQL DSN. All require TLS by default.

Schema browsing

Once connected, expand the connection in the sidebar:

Connection → Database → Tables / Views / Routines / Triggers

MySQL doesn't have schemas in the PostgreSQL sense; in MySQL "schema" and "database" are synonymous. Pick the database you want to work in from the tree.

Common issues

Where to go next

Newsletter

Stay updated on new releases

Subscribe to get product releases, new drivers notifications, and technical tutorials.

🎁 Bonus: Get our free SQL Performance Cheat Sheet — 9 pages, PostgreSQL / MySQL / SQLite (PDF)!