When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result:
when i log any error, i get nothing
Command i'm using:
mysqldump --user=* --password=* --all-databases --log-error=*.log | gzip > *.gz
By default it will lock all tables; this stops anything being updated.
If you are using transactional engines exclusively (InnoDB) then you probably want to use --lock-tables=0 and --single-transaction
This will use a MVCC snapshot (effectively).
Please post exactly what error you're getting, as well as the command you're using.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.