Skip to content

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 ​

FieldDefaultNotes
Hostlocalhost
Port3306
DatabaseOptional; pick one after connecting
Userroot
PasswordKept 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 PROCESS to see other users' queries. Blocks reads performance_schema.data_lock_waits (MySQL 8). Top reads performance_schema statement 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.

Lily DB is free for personal and commercial use.