Can somebody explain how mysqldump --single-transaction
actually works for transactional tables, like InnoDB? I've read official documentation but still haven't glue. Does it perform per table lock instead of global lock as --lock-tables
do? Also, mysqldump runs --opt
as a default option, which includes --lock-tables
, but they are mutually exclusive with --single-transaction
as described in documentation link above. Should I use --skip-opt
when using --single-transaction
in single mysqldump command?
I need to dump InnoDB table with size of ~700 Gb and I'm looking the right command to achive this. Currently I use below one:
mysqldump -B my_db --quick --single-transaction --max_allowed_packet=512M --compress --order-by-primary
Thanks in advance.