MySQL Options- mysqldump and mysqlpump Flashcards
Does not cover all options for mysqldump and mysqlpump, just ones that might be harder to remember their functionality.
–bind-address
For mysqldump and mysqlpump commands
Use specified network interface to connect to MySQL Server
–character-sets-dir
For mysqldump and mysqlpump commands
Directory where character sets are installed
–column-statistics
For mysqldump and mysqlpump commands
Write ANALYZE TABLE statements to generate statistics histograms
–complete-insert
For mysqldump and mysqlpump commands
Use complete INSERT statements that include column names
–compress
For mysqldump and mysqlpump commands
Compress all information sent between client and server
–compression-algorithms
For mysqldump and mysqlpump commands
Permitted compression algorithms for connections to server
–debug
For mysqldump and mysqlpump commands
Write debugging log
–debug-check
For mysqldump and mysqlpump commands
Print debugging information when program exits
–debug-info
For mysqldump and mysqlpump commands
Print debugging information, memory, and CPU statistics when program exits
–default-auth
For mysqldump and mysqlpump commands
Authentication plugin to use
–defaults-extra-file
For mysqldump and mysqlpump commands
Read named option file in addition to usual option files
–hex-blob
For mysqldump and mysqlpump commands
Dump binary columns using hexadecimal notation
–login-path
For mysqldump and mysqlpump commands
Read login path options from .mylogin.cnf
–net-buffer-length
For mysqldump and mysqlpump commands
Buffer size for TCP/IP and socket communication
–no-create-info
For mysqldump and mysqlpump commands
Do not write CREATE TABLE statements that re-create each dumped table
–port
For mysqldump and mysqlpump commands
TCP/IP port number for connection
–replace
For mysqldump and mysqlpump commands
Write REPLACE statements rather than INSERT statements
–result-file
For mysqldump and mysqlpump commands
Direct output to a given file
–set-gtid-purged
For mysqldump and mysqlpump commands
Whether to add SET @@GLOBAL.GTID_PURGED to output
–single-transaction
For mysqldump and mysqlpump commands
Issue a BEGIN SQL statement before dumping data from server
–ssl-ca
For mysqldump and mysqlpump commands
File that contains list of trusted SSL Certificate Authorities
–ssl-cert
For mysqldump and mysqlpump commands
File that contains X.509 certificate
–ssl-cipher
For mysqldump and mysqlpump commands
Permissible ciphers for connection encryption
–ssl-cripath
For mysqldump and mysqlpump commands
Directory that contains certificate revocation-list files
–ssl-mode
For mysqldump and mysqlpump commands
Desired security state of connection to server
–tls-version
For mysqldump and mysqlpump commands
Permissible TLS protocols for encrypted connections
–tz-utc
For mysqldump and mysqlpump commands
Add SET TIME_ZONE=’+00:00’ to dump file
–apply-replica-statements
For mysqldump
Include STOP REPLICA prior to CHANGE REPLICATION SOURCE TO statement and START REPLICA at end of output
–apply-slave-statements
For mysqldump
Include STOP SLAVE prior to CHANGE MASTER statement and START SLAVE at end of output
–compact
For mysqldump
Produce more compact output
–delete-master-logs
For mysqldump
On a replication source server, delete the binary logs after performing the dump operation
–delete-source-logs
For mysqldump
On a replication source server, delete the binary logs after performing the dump operation
–disable-keys
For mysqldump
For each table, surround INSERT statements with statements to disable and enable keys
–dump-replica
For mysqldump
Include CHANGE REPLICATION SOURCE TO statement that lists binary log coordinates of replica’s source
–dump-slave
For mysqldump
Include CHANGE MASTER statement that lists binary log coordinates of replica’s source
–flush-logs
For mysqldump
Flush MySQL server log files before starting dump
–flush-privileges
For mysqldump
Emit a FLUSH PRIVILEGES statement after dumping mysql database
–force
For mysqldump
Continue even if an SQL error occurs during a table dump
–master-data
For mysqldump
Write the binary log file name and position to the output
–no-autocommit
For mysqldump
Enclose the INSERT statements for each dumped table within SET autocommit = 0 and COMMIT statements
–no-defaults
For mysqldump
Read no option files
–no-data
For mysqldump
Do not dump table contents
–opt
For mysqldump
Shorthand for –add-drop-table –add-locks –create-options –disable-keys –extended-insert –lock-tables –quick –set-charset
–quick
For mysqldump
Retrieve rows for a table from the server a row at a time
–source-data
For mysqldump
Write the binary log file name and position to the output
–default-parallelism
For mysqlpump
Default number of threads for parallel processing
–defer-table-indexes
For mysqlpump
For reloading, defer index creation until after loading table rows
–parallel-schemas
For mysqlpump
Specify schema-processing parallelism
–users
For mysqlpump
Dump user accounts
–insert-ignore
For mysqldump and mysqlpump commands
Write INSERT IGNORE rather than INSERT statements
–lock-all-tables
For mysqldump
Lock all tables across all databases
–lock-tables
For mysqldump
Lock all tables before dumping them