简体   繁体   中英

mysql dump stops when a row is updated

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:

  • -f (forces continu even when error)
  • -x (lock all tables)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM