Docs / MySQL and MariaDB

← Databases

MySQL and MariaDB

One driver (the mysql_async client) opens MySQL 5.7 and later and MariaDB 10.6 and later. Both have a tile in the grid of databases; the driver tells which server it reached and shows it in the connection (Connected: MariaDB 11.4). Nothing is downloaded.

Connect

You pasteRead as
mysql://user:pass@host:3306/db?sslMode=REQUIRED (or mariadb://)the URL form; default port 3306
jdbc:mysql://host:3307/db, jdbc:mariadb://…a JDBC URL
Server=db;Port=3306;Database=shop;Uid=app;Pwd=…a Connector/NET connection string, if it also has Driver= or you pasted it in a MySQL form

URL parameters the app knows: sslmode (also written ssl-mode, sslMode, ssl_mode), sslrootcert, sslcert, sslkey, application_name and connect_timeout.

TLS: disable turns it off. prefer (the default) uses TLS and falls back to plain when the server has none or only offers versions the client refuses (MySQL 5.7's images do); it never falls back when signing in with a token. prefer and require do not check the certificate. verify-ca checks the chain against sslrootcert and not the host name; verify-full checks both. MySQL's own names (REQUIRED, VERIFY_IDENTITY) are understood. A client certificate needs both sslcert and sslkey.

Signing in is by password, or by an AWS IAM, Google Cloud IAM or Microsoft Entra ID token made by the aws, gcloud or az tool; the token goes over TLS as the server asks. Kerberos (MariaDB's auth_gssapi, MySQL's Kerberos plugin) is not supported yet.

The connection is always TCP: a Unix socket or a Windows named pipe is not used.

Privileges

Browsing needs what the login can see. The administration tabs read:

What works

Agents

Read-only agents and read-only connections run SET SESSION TRANSACTION READ ONLY, and their queries run in a read-only transaction. server_activity and top_queries work. A MySQL or MariaDB @variable, temporary table or SET made by one agent call is there in the next. See Agents and the CLI.

Known limits

Tested on

The conformance suite runs on MySQL 5.7, 8.0 and 8.4 and MariaDB 10.6 and 11.4, with a client certificate over mutual TLS on MySQL 8.4, and sessions the server dropped.

See also: Connecting, Troubleshooting.