Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试获取 mysql 数据库的转储时,转储会在其中的一行被更新时停止。我怎样才能防止这种情况?我已经尝试了以下选项但没有结果:
当我记录任何错误时,我什么也得不到
我正在使用的命令:
mysqldump --user=* --password=* --all-databases --log-error=*.log | gzip > *.gz
默认情况下,它将锁定所有表;这会阻止任何更新。
如果您只使用事务引擎(InnoDB),那么您可能想要使用 --lock-tables=0 和 --single-transaction
这将使用 MVCC 快照(有效)。
请准确发布您遇到的错误以及您正在使用的命令。