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 <[email protected]>
Цей коміт міститься в:
Ernstjan FreriksтаEjaYF authored and GitHub committed 2026-11-17 23:39:50 +08:00
1 джерело 31466f2834
коміт 318f4a2d82
20 files changed
+1545 -115

No files matched your search

+2 -1
Переглянути файл
@@ -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);