feat(database): export with mysqldump and restore with mysql (#4001)

MySQL and MariaDB data sources, schemas and tables get Import/Export >
Export with 'mysqldump' and Restore with 'mysql'. ide-db builds the arguments
from typed options and runs the tool connected like the data source (TCP,
the driver's SSL flags, the SSH tunnel); the password goes in a user-only
temporary option file passed as --defaults-extra-file and removed after the
run. Restore pipes the dump into mysql's standard input.

Restore dialogs (MySQL and PostgreSQL) now check the target first: the
Database field lists the source's databases and disables Run for a missing
one, and db_dump_info (formerly db_dump_kind) reports whether an SQL dump
creates its database itself. pg_restore gains --create.

Part of #3188

Co-authored-by: EjaYF <9842286+EjaYF@users.noreply.github.com>
This commit is contained in:
Ernstjan Freriks
2026-11-17 23:39:50 +08:00
committed by GitHub
co-authored by EjaYF
parent 31466f2834
commit 318f4a2d82
20 changed files with 1545 additions and 115 deletions
+2 -1
View File
@@ -1425,7 +1425,8 @@
}
.dumpPreview {
grid-column: 1 / -1;
max-height: 96px;
flex: none;
height: 96px;
overflow: auto;
padding: 6px 8px;
border: 1px solid var(--border);