Import & Export
Export
Export from the Export ▾ menu in the results/browse footer.
- A table exports every row its filter matches, in the grid's sort — not only the rows loaded on screen. It is read from the server and written to the file a page at a time, so a table of millions of rows exports with little memory. The toolbar counts the rows as they go; Stop ends it and leaves no file behind.
- A query result exports the rows it returned.
| Format | Notes |
|---|---|
| CSV | RFC-escaped; available on all editions |
| JSON | Array of objects; NULL → null — Pro |
| JSONL | One JSON object per line — streams into most data tools — Pro |
| SQL | INSERT statements, escaped for the connection's engine — Pro |
| XLSX | Excel workbook (plain numbers typed; 007 and long ids stay text). A sheet holds at most 1,048,575 rows — use CSV or JSONL beyond that — Pro |
Files are written to your Downloads folder with a timestamped name; the path is shown in the status bar.
Free edition
Free exports CSV only. Pro/Premium unlock JSON, JSONL, SQL and XLSX.
Import (CSV)
In a table's browse view, click Import CSV (Pro) and pick a file. The client:
- Reads the file locally (nothing is uploaded).
- Matches CSV header columns to the table's columns (case-insensitive).
- Inserts matched columns in batches within a single transaction.
- Reports the number of rows inserted and any ignored columns.
Empty cells are inserted as NULL. The CSV must have a header row.
Tip
Column matching is by name — reorder or rename CSV headers to control the
mapping. Unmatched CSV columns are ignored; table columns not present in the
CSV take their default/NULL.
Import a SQL dump
Tools → Import SQL dump… (also in a database's right-click menu and the
command palette) loads a .sql file — a dump from Navicat (Dump SQL File →
Structure and Data), mysqldump, or the client's own SQL export — into the
database on screen. (Pro)
Choose the file and press Load. The statements run in order on one connection, with a progress bar and a Stop button (it stops between statements). On a production connection you are asked first. A dump usually drops and recreates its tables, so load it where that is what you want.
What a dump contains is handled as it is:
delimiter ;;/DELIMITER $$blocks around procedures and triggers;SET NAMES,LOCK TABLESand the other statements MySQL will not take as prepared statements — everything is sent over the plain text protocol;- binary data written as raw bytes (mysqldump without
--hex-blob) — sent as hex literals, byte for byte; /*!40101 … */version comments, which the server runs as code.
When the server refuses a statement, the import stops at it and shows the line and the error; everything before it has been applied. Two kinds of refusal are handled instead, and listed in the report:
- skipped — session housekeeping that carries no data or schema:
LOCK/UNLOCK TABLES,ALTER TABLE … DISABLE/ENABLE KEYS,SETof a session setting, and thePREPARE/EXECUTEthat Percona's mysqldump uses to probe for RocksDB; - adjusted — a
CREATE TABLEorCREATE INDEXwithASCon a key column (the default direction, which Navicat spells out), an index type such asUSING BTREE, or a descending key column (created_at DESC, as Laravel writes them). ElyraSQL Server 1.12 refuses all three; they are removed and the statement is tried once more. WithoutDESCthe index is ascending: queries return the same rows, and only a scan in reverse order may be slower; - adjusted —
ALGORITHM =,DEFINER =andSQL SECURITYin front of a view, procedure, function, trigger or event, which ElyraSQL Server 1.11 refuses. The object is then created as the importing user.
On ElyraSQL the import also resolves mysqldump's /*!50001 … */ version
comments itself, the way MySQL does: ElyraSQL 1.11 treats them as plain
comments, which silently left out every view and trigger mysqldump writes
inside them. ElyraSQL before 1.12 cannot store binary values that are not valid
UTF-8 — whatever the import sends, FF comes back as EF BF BD — so load a dump
with binary data into 1.12 or later.
On MySQL and MariaDB nothing is skipped or adjusted. The file must be UTF-8 (Navicat: File Encoding 65001, its default); binary values are fine either way. The query history gets one line for the import, not every statement.
A small dump pasted into the editor runs too: DELIMITER lines are understood
there, and a statement MySQL refuses as a prepared statement is sent again as
plain text.