MYDUMPER(1)
π NAME π
okay so bestie, this whole page is about mydumper (that's mydumper(1) if we're being formal β¨) β the multi-threaded MySQL dumping tool that carries your backups on its back like the icon it is.
π¦ SYNOPSIS π¦
mydumper [OPTIONS]
πΈ DESCRIPTION πΈ
mydumper is the tool you use to back up MySQL database servers, and it does it way faster than mysqldump (the one that ships with MySQL, no shade... okay a little shade π
). It can also pull the binary logs off the remote server at the exact same time as the dump itself. multitasking queen behavior, honestly.
the advantages of mydumper are, in no particular order but also very much in this order:
- Parallelism (hence, speed) and performance (it avoids expensive character set conversion routines, and the code is efficient overall) π₯
- Easier to manage output β separate files for tables, dump metadata, etc., so it's easy to view and parse your data π
- Consistency β it maintains a snapshot across all threads, and gives you accurate master and slave log positions, etc. π«Ά
- Manageability β it supports PCRE for specifying database and table inclusions and exclusions π
β¨ OPTIONS β¨
the mydumper tool has several available options, and yes we're going through all of them, bestie, every single one, no skipping:
--help,-?β Show help text π--defaults-fileβ Use the given option file. If the file does not exist or is otherwise inaccessible, no failure occurs (chill, it just shrugs)--host,-hβ Hostname of MySQL server to connect to (defaultlocalhost)--user,-uβ MySQL username with the correct privileges to execute the dump--password,-pβ The corresponding password for the MySQL user--port,-Pβ The port for the MySQL connection.
NOTE: For localhost TCP connections use127.0.0.1for--host.
--socket,-Sβ The UNIX domain socket file to use for the connection--database,-Bβ Database to dump--tables-list,-Tβ A comma separated list of tables to dump--threads,-tβ The number of threads to use for dumping data, default is4
NOTE: Other threads are used in mydumper, this option does not control these.
--outputdir,-oβ Output directory name, default isexport-YYYYMMDD-HHMMSS--statement-size,-sβ The maximum size for an insert statement before breaking into a new statement, default1,000,000bytes--rows,-rβ Split table into chunks of this many rows, default unlimited--compress,-cβ Compress the output files--compress-input,-Cβ Use client protocol compression for connections to the MySQL server--build-empty-files,-eβ Create empty dump files if there is no data to dump--regex,-xβ A regular expression to match against database and table--omit-from-file,-Oβ File containing a list ofdatabase.tableentries to skip, one per line; the skipped entries have precedence over patterns specified by the regex option--ignore-engines,-iβ Comma separated list of storage engines to ignore--no-schemas,-mβ Do not dump schemas with the data--no-data,-dβ Do not dump table data--triggers,-Gβ Dump triggers--events,-Eβ Dump events--routines,-Rβ Dump stored procedures and functions--no-views,-Wβ Do not dump views--long-query-guard,-lβ Timeout for long query execution in seconds, default60--kill-long-queries,-Kβ Kill long running queries instead of aborting the dump--version,-Vβ Show the program version and exit--verbose,-vβ The verbosity of messages.0= silent,1= errors,2= warnings,3= info. Default is2.--binlogs,-bβ Get the binlogs from the server as well as the dump files (You need to compile with-DWITH_BINLOG=ON)--daemon,-Dβ Enable daemon mode--snapshot-interval,-Iβ Interval between each dump snapshot (in minutes), requires--daemon, default60(minutes)--logfile,-Lβ A file to log mydumper output to instead of console output. Useful for daemon mode.--no-locks,-kβ Do not execute the temporary shared read lock.
WARNING: This will cause inconsistent backups. π like actually, do not do this casually.
--no-backup-locksβ Do not use Percona Backup Locks--[skip-]tz-utcβSET TIME_ZONE=β+00:00βat top of dump to allow dumping ofTIMESTAMPdata when a server has data in different time zones or data is being moved between servers with different time zones, defaults to on use--skip-tz-utcto disable.--less-lockingβ Minimize locking time on InnoDB tables grabbing aLOCK TABLE β¦ READon all non-innodb tables.--chunk-filesize,-Fβ Split tables into chunks of this output file size. This value is in MB--success-on-1146β Not increment error count and Warning instead of Critical in case of table doesn't exist--use-savepointsβ Use savepoints to reduce metadata locking issues, needsSUPERprivilege--complete-insertβ Use completeINSERTstatements that include column names.
π AUTHOR π
Andrew Hutchings
π COPYRIGHT π
2011, Andrew Hutchings
and that's the whole page, bestie π do it for the backups. this was version 0.10.0, dated Sep 22, 2025 β yes that fresh. now go forth and dump responsibly ππ
π¦ where this page comes from
- ubuntu resolute: mydumper 0.10.1-2ubuntu1 Β· GPL-3.0-or-later
- ubuntu stonking: mydumper 0.10.1-2ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms