MySQL · mysqldump · GUI · backup · MariaDB

Export a MySQL dump: GUI vs mysqldump

pimvdmolen.nl · · ~5 min read

mysqldump still wins for overnight backups. A desktop SQL client wins when you need a handful of tables, you do not have the MySQL client package installed, and you want to tick Structure or Data before anything hits disk. This how-to shows both paths on MySQL and MariaDB, and where a GUI dump is the wrong file.

What each dump actually contains

mysqldump writes CREATE TABLE, INSERT, and views. Pass --routines and --events if you also need procedures, functions, and scheduled events. --triggers is on by default; --routines and --events are off, so a "full" dump that skipped those flags is missing objects you will only notice on restore.

A GUI dump is usually narrower. In TabulaSQL the export wizard writes tables and views: SHOW CREATE for structure, batched INSERT statements for data, SET NAMES utf8mb4, and FOREIGN_KEY_CHECKS=0 around the file. Optional checkboxes add DROP TABLE/VIEW IF EXISTS and CREATE DATABASE IF NOT EXISTS plus USE. Binary columns go out as 0x hex literals. Procedures, functions, triggers, and events are not in that .sql file. Copy those objects with the copy wizard between two open connections, or use mysqldump --routines --events.

Export from a desktop GUI

Connect first. For local Docker or Laravel Herd that is 127.0.0.1 on port 3306, user root or herd, and the database you actually want. For a remote host, turn on the in-app SSH tunnel instead of opening port 3306 to the internet.

Then run the wizard:

  1. Right-click the database in the object explorer and choose Export Database.... To dump one table, right-click that table, open Backup/Export, then SQL dump....
  2. Tick the tables and views you need. Use all or none if the list is long, then add back users, orders, and the views your app reads.
  3. Leave Structure and Data on for a full copy. Uncheck Data for a schema-only file. Uncheck Structure only when the destination already has the tables.
  4. Turn on DROP IF EXISTS when the restore target may already contain those names. Leave it off if you are appending into an empty schema you created by hand.
  5. Turn on CREATE DATABASE + USE when the file should create shop (or whatever the source name is) on a blank server. Skip it when you will import into a database that already exists under a different name.
  6. Click Export and save the download. TabulaSQL names the file like shop-20261022-183015.sql.

You do not need a mysqldump binary on the laptop. TabulaSQL generates the file in PHP inside the app, so the same flow works on Windows machines that never installed MySQL client tools. Workbench Data Export can call mysqldump if it is on PATH; HeidiSQL can write SQL or call the client. Get TabulaSQL from https://tabulasql.com/download if you want the wizard locally.

Open the first 40 lines in a text editor before you restore anything. You should see a -- TabulaSQL dump header, the server VERSION(), SET NAMES utf8mb4, and SET FOREIGN_KEY_CHECKS = 0.

mysqldump flags that actually matter

Run this from a shell that can reach the server:

mysqldump -h 127.0.0.1 -P 3306 -u backup -p \
  --single-transaction \
  --routines --events --triggers \
  --default-character-set=utf8mb4 \
  --set-gtid-purged=OFF \
  --result-file=shop.sql \
  shop

--single-transaction takes a consistent InnoDB snapshot without LOCK TABLES on every table. Use it on production InnoDB. --routines and --events are off by default; omit them and you silently drop procedures. --result-file writes UTF-8 on Windows instead of a redirected > that can mangle encoding in cmd.exe.

MariaDB 11 ships mariadb-dump as the current name. The same flags apply except --set-gtid-purged, which is a MySQL GTID switch. Point it at port 3306 unless you remapped the container.

Do not use a GUI dump as your only production backup if writers keep hitting InnoDB while the client pages through SELECT * ... LIMIT 1000. The wizard reads in 1000-row chunks. Rows that change mid-export can appear twice, disappear, or disagree with a later table. That is fine for a local fixture. It is not a point-in-time backup.

The dump user needs SELECT and SHOW VIEW. Add TRIGGER and EVENT when those objects are in the file, PROCESS unless you pass --no-tablespaces, and LOCK TABLES if you skip --single-transaction. Prefer a replica or a read-only account over root on the live primary.

When each one wins

Need GUI export mysqldump
License Free in TabulaSQL (MIT) Free, ships with the MySQL/MariaDB client
OS macOS, Windows, Linux, no client package Needs the client binary on PATH
Pick four tables visually Yes --tables plus names you type
Structure / data toggles Checkboxes --no-data / --no-create-info
Consistent InnoDB snapshot No --single-transaction
Procedures, events, triggers No (copy wizard between servers) --routines --events --triggers
Script in cron No Yes
Giant databases Awkward over SSH from a laptop Run on the server, pipe, compress

Use the GUI when you are seeding shop_dev from three production-shaped tables, handing a colleague a schema-only file, or working on a locked-down Windows laptop. Use mysqldump when the restore has to include routines, when GTID or replicas are in play, or when the job runs unattended.

Check the file, then restore

Count CREATE TABLE against the tables you ticked. Search for DEFINER= if you later switch to a mysqldump that includes views or routines; TabulaSQL strips DEFINER from views so the file imports under another user. For the restore itself, follow How to Import a SQL Dump into MySQL rather than pasting a 400 MB file into the editor.

If you only needed the data on another MySQL server you already have open, skip the .sql file: right-click the database and use Copy Tables To.... That path is chunked and foreign-key aware, and it can move procedures, functions, triggers, and events that the dump wizard leaves out.

Tables and views belong in the GUI file. Keep mysqldump for the backups you would be sad to replay from a half-written export.

Frequently asked questions

Not if you need a consistent InnoDB snapshot, stored programs, or an unattended job. Use mysqldump --single-transaction --routines --events for those. A GUI export is the right file for selected tables and views, local fixtures, and machines without the MySQL client.

No. The export wizard writes SQL in PHP inside the app. You pick tables and views, Structure and/or Data, optional DROP IF EXISTS and CREATE DATABASE, then download a .sql file.

Open Export Database, keep Structure checked, uncheck Data, then Export. That matches mysqldump --no-data for tables and views.