MySQL and MariaDB sessions
A MySQL session opens a read-only database browser in the tab: databases and tables on the left, rows with paging and a search on the right, the connection console under it. Every statement the browser runs is logged in the console. Works with MySQL and MariaDB, directly or behind ProxySQL.
Shared fields are on the Session dialog page. Default port 3306. Without
Specify username the console asks login as:.

The browser with a table open; the console under it logs every statement.

One row opened from the table.
Database settings
Section titled “Database settings”
| Field | Values | Default | What it does |
|---|---|---|---|
| Encryption | Preferred: TLS when the server offers it (warns otherwise), Required: TLS or no connection, Disabled: no TLS (queries and data unencrypted) | Preferred | TLS of the connection. With Preferred and a server without TLS, the console prints The server does not offer TLS: continuing WITHOUT encryption. Required stops with the server does not offer TLS (no CLIENT_SSL capability; have_ssl = DISABLED?). |
| In front of the server | Detect at login, ProxySQL: only SETs it tracks, no transactions, The MySQL / MariaDB server itself | Detect | Detection reads select @@version_comment limit 1. Behind ProxySQL every session SET is checked with PROXYSQL INTERNAL SESSION; a SET that would lock the connection to one hostgroup is undone and skipped. Errors 9005/9006 reset the connection and retry once. |
| Database | Name; empty = pick one in the tab | Empty | Database opened first. |
| Allow write (write mode in tabs, migration target) | On / off | Off | Table tabs and tree tools of this session can turn on write mode, and the session can be the target of a migration. Quick connections are always read-only. |
| Production (second confirmation before writes) | On / off | Off | Write mode and writes to this session need a second confirmation that names the host and account. |
TLS certificate and password
Section titled “TLS certificate and password”The certificate is checked with the macOS trust settings (Windows: the Windows certificate store), against the host name of the session
(the connection itself goes to the resolved IP address). MySQL generates a self-signed
certificate by default, so a first connection often fails the check; the console explains it and
asks Connect anyway without verifying the certificate? [y/N].
The saved password (password:mysql://<user>@<host>:<port>) is sent over an unverified TLS
connection, or without TLS when TLS was not disabled on purpose, only after
Send the password saved in Keychain (…) over this … connection? [y/N]. Up to 3 typed passwords;
after a successful one Save password in Keychain? [y/N].
What the connection does on the server
Section titled “What the connection does on the server”After login, in this order (details: MySQL and MariaDB):
SET NAMES utf8mb4and a check that the client and connection character sets areutf8mb4: the browser quotes names and values for utf8mb4, so another character set stops the connection.ROLLBACK(a transaction opened byinit_connectwould stay read-write).SET SESSION TRANSACTION READ ONLY: required, the browser does not run without it.- A 60 s limit per statement on the server:
max_execution_time = 60000(MySQL) ormax_statement_time = 60(MariaDB). The client gives up after 90 s.
Behind ProxySQL SET autocommit = 1 is sent first, and each session SET is checked as
described on the MySQL and MariaDB page.
Statements are built only from names read from information_schema (quoted with backticks) and
literals that cannot leave their quotes (hex for ' and \). The search runs
CAST(<column> AS CHAR) LIKE '%text%' ESCAPE '!' on one or all columns (Search table);
Search database counts matches in every table of the open database, views only with
views checked, since they can run expensive queries. Rows are paged 50, 100, 250, 500 or 1000
at a time (default 100); Copy the SQL copies the statement of the page. No transactions and no SQL hints are sent, because they would change
ProxySQL routing.
Connect timeout 20 s; a keepalive every 60 s while idle.
Databases window, editing and tools
Section titled “Databases window, editing and tools”The open connection also appears in the Databases tool window, with table tabs, the query editor, write mode, structure editing, users and privileges, export and migration. These are described in the Databases section:
- Databases overview: read-only session, write mode, the write flags;
- Browse and search, Query editor;
- Edit data: write mode, grid editing, Run as change…, table tools;
- Table structure and Unicode, Users and privileges, Export and migration;
- Troubleshooting databases.
Console commands
Section titled “Console commands”| Command | What it does |
|---|---|
status |
Server version and comment, address, user, connection id, TLS (verified or not, with details), ProxySQL state. |
proxysql |
Runs PROXYSQL INTERNAL SESSION and prints the session state (hostgroup lock and tracked variables). |
password |
Asks for the password again after the app lock wiped one typed at sign-in and not saved (further connections of the tab use it); kept until the next lock. From then on the tab does not read the saved password again. |