MySQL and MariaDB

Has powered half the internet. Still humble.
Pick MySQL in the wizard for both MySQL and MariaDB; they use the same driver.
Connecting
| Field | Default | Notes |
|---|---|---|
| Host | localhost | |
| Port | 3306 | |
| Database | Optional; pick one after connecting | |
| User | root | |
| Password | Kept in the Keychain |
- Use TLS / SSL, with Verify server certificate to reject untrusted certificates.
- URLs:
mysql://(use it for MariaDB too). - SSH tunnels are supported.
Databases
In MySQL a database and a schema are the same thing, so the sidebar has one Database menu, with New database….
MySQL tools
- Objects: functions, procedures and triggers in the sidebar.
- Enum columns: a menu of values when editing, and Edit enum values… on the column.
- Table size in the Structure tab.
Performance
- Trace: Live and recording need
PROCESSto see other users' queries. Blocks readsperformance_schema.data_lock_waits(MySQL 8). Top readsperformance_schemastatement digests. - Visual plan from
EXPLAIN FORMAT=JSON. - Speed up this query.
Health Check
The common rules apply.
Playground
mysql:8.4 on port 13306, user root, password lily123, database lily_store.