Databases overview
KryoDesk works with MySQL and MariaDB servers, directly or behind ProxySQL, read-only with PostgreSQL (PostgreSQL) and CockroachDB (CockroachDB), read-only with ClickHouse over HTTP(S) (ClickHouse), and with Redis and Valkey in their own key browser (Redis and Valkey; not in the Databases window). A database is reached through a saved session (or a quick connection) of type Databases; the session opens a connection tab, and the Databases tool window lists the databases of every connection tab open in the window.
Every connection is read-only by default. Changes (rows, structure, accounts, migrations) are built in KryoDesk, shown as the exact SQL and sent only after you approve them. Every statement, including the ones KryoDesk sends on its own (catalog reads, session checks), is printed in the console of the connection tab with its time, row count or the server’s error.

Sessions and tabs
Section titled “Sessions and tabs”| What | Where | Details |
|---|---|---|
| Session fields (host, port 3306, TLS, ProxySQL, start database, write flags) | Sessions → New session → Databases, tab Database settings | MySQL and MariaDB sessions |
| Connection tab | Double-click the session | Console with every statement, and a simple browser: databases and tables on the left, rows with search on the right. |
| Databases window | Tool window bar, left side by default (database icon) | Connections → Users and privileges → databases → tables, views, procedures and functions. Browse and search |
| Table tab | Double-click a table in the Databases window | Views Data, Structure, Query. New query on a database opens a tab with Query only (title Query: <database>). |
| Users and privileges tab | The node under a connection, or Users and privileges… in its context menu | Users and privileges |
| Object tab (view, procedure, function, trigger, event) | Edit definition in the context menu, double-click a routine, trigger or event, New → on a database | Views, routines, triggers, events |
| Server variables / Server status tabs | The nodes under a connection | Server variables and status |
| Export / Migrate tab | Export… / Migrate… in the context menu of a database or table | Export and migration |
Table, users and Export / Migrate tabs work on a connection tab of the same window. They are not saved in the window layout, do not move to a separate window, and show The connection of this tab is not open in this window while the connection tab is closed. After the connection tab logs in again (reconnect), they read their data again.
The read-only session
Section titled “The read-only session”At login the connection sets SET NAMES utf8mb4, ends any transaction left by init_connect
(ROLLBACK), sets SET SESSION TRANSACTION READ ONLY (required: the tab does not open without
it) and a 60 s server-side limit per statement (max_execution_time = 60000 on MySQL,
max_statement_time = 60 on MariaDB). The client stops waiting after 90 s. The exact sequence is on
the MySQL and MariaDB page.
With the session read-only, the server refuses any write with error 1792 (Cannot execute
statement in a READ ONLY transaction). The browser builds SQL only from names it read from
information_schema (in backticks) and from literals that cannot leave their quotes. The query
editor sends what you type, one statement per run, and checks the session after each one.
READ ONLY covers table data. Statements that do not change tables (SET GLOBAL, KILL, FLUSH,
SELECT … INTO OUTFILE, account statements) are limited only by the privileges of the account.
Write flags of a session
Section titled “Write flags of a session”Two checkboxes in the session’s Database settings tab:
| Checkbox | Default | Effect |
|---|---|---|
| Allow write (write mode in tabs, migration target) | off | Table tabs show the Write mode button; tree tools can change tables; structure editing, account changes and use as a migration target are allowed. |
| Production (second confirmation before writes) | off | Every kind of change asks for an extra confirmation that names the server (see the table below). |
Quick connections (user@host:port in Sessions) are always read-only: they have no saved flags.
Every kind of change (write mode in a table tab, Run as change…, tree tools, structure, users
and privileges, migration targets) reads the current session settings at every step
(entering write mode, prepare, send), and only while the saved session still points to the host
and port of the open tab. A session edited to another host does not make an already open tab
writable. A tab opened with Connect as… another login writes under the session’s flags, but
only as exactly that login (recorded when the tab connected), so Allow write covers every
login opened on that host and port with Connect as…. The console says so at connect, and the
console and the change preview show the login with the account the server matched:
app (server account app@%) on db.example:3306 (Connect as). A tab opened with the session’s own login stays read-only
after the session’s login is changed to another one (reconnect the tab). No reconnect is needed
after changing the flags:
- Allow write turned off: the next prepare or send is refused and write mode ends in every tab and tool of that connection; prepared changes are dropped. The connection console prints Allow write turned off in the session: write mode ended (…); nothing was sent.
- Production turned on: a tab whose write mode was entered without the production confirmation ends write mode at its next prepare or send (Production turned on in the session: write mode ended without the production confirmation; nothing was sent …); a change prepared before cannot be sent. Turning write mode on again asks for the confirmation.
- Allow write turned on: the Write mode button appears when the table tab is shown again.
Where each change runs
Section titled “Where each change runs”| Change | Needs | Connection | How it is sent |
|---|---|---|---|
| Grid edits (UPDATE / INSERT / DELETE) | Write mode in the tab | The tab’s connection | START TRANSACTION READ WRITE, statements, COMMIT; any row count other than 1 = ROLLBACK. Edit data |
| Run as change… in the query editor | Write mode in the tab | The tab’s connection | SET SESSION TRANSACTION READ WRITE, the statement, SET SESSION TRANSACTION READ ONLY |
| Tools: ANALYZE, OPTIMIZE, REPAIR, TRUNCATE, DROP | Allow write; the dialog turns write mode on for itself | The tab’s connection | As above, one statement per table |
| Structure: ALTER, CREATE, RENAME, CONVERT, ALTER DATABASE | Allow write | The tab’s connection | As above, with lock_wait_timeout optional. Table structure |
| Views, routines, triggers, events: CREATE [OR REPLACE], DROP + CREATE, DROP | Allow write | The tab’s connection | As structure changes, with the object’s sql_mode set for the statement. Views, routines, triggers, events |
SET GLOBAL, SET PERSIST, SET PERSIST_ONLY, RESET PERSIST |
Allow write, not behind ProxySQL | The tab’s connection | As structure changes. Server variables |
| Accounts, roles, privileges | Allow write | A separate connection, closed afterwards | Statements one by one, stop at the first error. Users and privileges |
| Migration into another connection | Allow write on the target session | Separate connections for source and target | Export and migration |
Before a grid edit, a Run as change… statement or a tool, the tab’s connection is reset
(COM_RESET_CONNECTION, or a new connection when the server lacks it) and set up again
(SET NAMES utf8mb4, SET autocommit = 1, SET SESSION TRANSACTION READ ONLY, the time limit).
Session variables, user variables and temporary tables created earlier in the query editor on
that connection are gone afterwards.
After every change the session is checked: ROLLBACK, UNLOCK TABLES, DO RELEASE_ALL_LOCKS(),
then the read-only flag, utf8mb4 character sets, autocommit = 1 and the time limit are read
and set back where they changed. When the session cannot be verified, nothing more is sent on
that connection and it is closed; the error ends with reconnect in its tab.
Production confirmations:
| Where | Confirmation |
|---|---|
| Write mode button | Dialog Write mode on a production server → Turn on write mode |
| Tree tools | … is marked as production. Write mode is turned on for this tool only → Turn on write mode and prepare |
| Structure review | Checkbox Production server: send this change next to Send |
| Users review | Checkbox Production server: I checked these statements |
| Migration start | Checkbox The target is a PRODUCTION session: write anyway |
Behind ProxySQL write mode is off (a transaction or a session SET pins the session to one
hostgroup, and the read-only check afterwards could reach another backend). Structure changes
work behind ProxySQL only when ProxySQL kept SET SESSION TRANSACTION READ ONLY at login; a
migration target behind ProxySQL is refused. Use a session with In front of the server: The
MySQL / MariaDB server itself pointed at the primary for those.
A prepared change is held in KryoDesk for 5 minutes (a migration plan for 30 minutes), sent once,
exactly as shown. Locking the app (App Lock) wipes the tab’s password from memory, so account
changes, exports and migrations refuse to prepare and send while locked; after the unlock the
password is read from the vault again (typed and not saved: console command password).