Skip to content

Browse and search

Everything on this page is read-only and runs on the connection tab’s read-only session. Each statement is in that tab’s console.

The tree shows the connection tabs of this window (MySQL/MariaDB), each with Users and privileges and its databases; a database expands to tables, views, procedures and functions. With no connection open: No MySQL/MariaDB connection open. Open one from Sessions.

Element What it shows Read from
Connection Session title and host; tooltip with the logged-in account, server and version, address, ProxySQL Login
Database Name; size after Load database sizes (tooltip: number of tables) SELECT SCHEMA_NAME FROM information_schema.SCHEMATA ORDER BY SCHEMA_NAME
Table / view Rows (≈ for InnoDB) and data + index size; tooltip with kind, engine, comment SELECT TABLE_NAME, TABLE_TYPE, ENGINE, TABLE_ROWS, DATA_LENGTH + INDEX_LENGTH, TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = '<db>' ORDER BY TABLE_NAME
Procedure / function Name and kind SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_COMMENT FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '<db>' ORDER BY ROUTINE_TYPE, ROUTINE_NAME

The two fields at the top filter by name (substring, any case): Databases filters databases, Tables filters tables and routines and hides loaded databases without a match. The refresh button in the window header (Reload all connections) reads every connection again; a reconnected tab is read again on its own.

Load database sizes runs one pass over information_schema.TABLES (SELECT TABLE_SCHEMA, COUNT(*), SUM(DATA_LENGTH + INDEX_LENGTH) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA ORDER BY TABLE_SCHEMA), which is slow on servers with very many tables, so it runs only on request.

Double-click (or Enter) on a table opens its tab with Data; on a connection it shows the connection tab; on a routine it shows its SHOW CREATE.

Context menu of a table in the Databases window

Node Entries
Connection Show connection tab, Refresh, Load database sizes, Users and privileges…, Find text on server…, Copy host:port
Database New query, Refresh, Show CREATE DATABASE, Find text in database…, Tools (Check all tables, Analyze / Optimize / Repair all tables…, Drop database…), Copy name, Export…, Migrate…, New table…, Default character set…, utf8mb4 overview…
Table or view Open, Open structure, Show CREATE TABLE / Show CREATE VIEW, Refresh, Tools (Check table, Analyze / Optimize / Repair table…, Truncate table…, Drop table… / Drop view…), Copy name, Copy qualified name (`db`.`table`), Export…, Migrate…; base tables also Rename…, Duplicate structure…, Convert to utf8mb4…
Procedure / function Show CREATE PROCEDURE / Show CREATE FUNCTION, Copy name, Copy qualified name

Tools marked session read-only need Allow write on the session: Edit data. Structure entries: Table structure and Unicode. Export and Migrate: Export and migration.

Show CREATE … first finds the object in the catalog (information_schema.SCHEMATA, TABLES or ROUTINES; its kind picks the statement), then runs SHOW CREATE DATABASE, SHOW CREATE TABLE, SHOW CREATE VIEW, SHOW CREATE PROCEDURE or SHOW CREATE FUNCTION. The dialog shows the statement sent and the result, with Copy.

Quick search for “anna” over all columns of shop.customers with the exact SQL and the match count

Control What it does
Search, Enter Text to find; Enter applies it. The × clears the filter.
All columns Picks the columns to search (checkbox list with types; All resets). The button shows the column name or the count.
Column header Sort ascending, descending, then off.
SQL line The SELECT of the page and its time; click to show it in full together with the COUNT(*); the copy icon copies both.
Rows a–b · total ≈n total from TABLE_ROWS; count exactly runs SELECT COUNT(*) (a full scan on large InnoDB tables). Below 200,000 estimated rows the exact count runs on its own.
n matching “text” Rows that match the search (and in which columns, when picked).
Copy Copy page as CSV / TSV / Markdown / SQL INSERT (see Copying results).
Page size 50, 100 (default), 250, 500, 1000. Previous, Next, reload.

Clicking a row opens the record panel: every column with its type (PK for the primary key), long values in full up to the cut-off, and a copy button (column: value lines).

The search runs CAST(<column> AS CHAR) LIKE '%text%' ESCAPE '!' on each searched column, joined with OR. Column names come only from information_schema.COLUMNS (in table order); a picked column that is no longer in the table is an error, never a name sent as typed. In the pattern, !, % and _ are escaped with !, so they match literally. The text is trimmed.

A text without ', \, control or invisible characters is sent as a plain literal; anything else as hex, so the SQL shown is the SQL sent. Searching O'Brien in email and note of crm.contacts:

SELECT * FROM `crm`.`contacts` WHERE (CAST(`email` AS CHAR) LIKE CAST(X'254F27427269656E25' AS CHAR) ESCAPE '!' OR CAST(`note` AS CHAR) LIKE CAST(X'254F27427269656E25' AS CHAR) ESCAPE '!') LIMIT 101 OFFSET 0

The page asks for one row more than its size (LIMIT 101 for 100) to know whether a next page exists. Matches are counted with SELECT COUNT(*) FROM … WHERE (…) unless the first page already holds all of them. Sorting adds ORDER BY `column` [DESC], with the column checked against the catalog the same way. LIKE on a non-indexed CAST reads the whole table: on large tables the 60 s server limit may stop it (error 3024 on MySQL, 1969 on MariaDB).

Shown Meaning
NULL (dim) SQL NULL
Text The value as the server returns it
Text with (first 4096 of n characters) Longer text is cut to 4096 characters
0x… with (binary, n bytes) Binary data as hex, up to 256 bytes; longer values end with …

Structure lists columns (type, NULL, default, extra, character set / collation, comment), indexes, foreign keys, CHECK constraints, table options, partitions (read-only) and the output of SHOW CREATE TABLE with a copy button. Editing: Table structure and Unicode.

Structure view of shop.customers

Find text on server… (connection menu) and Find text in database… (database menu) search every base table of the checked databases for a text, one table after another:

SELECT COUNT(*) FROM `db`.`table` WHERE (CAST(`col1` AS CHAR) LIKE '%text%' ESCAPE '!' OR CAST(`col2` AS CHAR) LIKE … ESCAPE '!')
Field Default
Text (LIKE ‘%text%’ over every column) —
Table name contains Empty: all base tables (views are skipped)
Databases From the server menu: all except information_schema, performance_schema, mysql, sys; from a database menu: that database. All, None.

Progress shows done / total tables and the current table; Stop ends the run after the current table. Each table with matches is listed with its count; clicking it opens the table tab with that search applied. Copy results copies db.table<TAB>count lines. Errors (for example a table without SELECT privilege) are listed per table; the run goes on.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close