sql >> Base de Datos >  >> RDS >> Mysql

Ejecute MySQLDump sin bloquear tablas

¿El --lock-tables=false opción de trabajo?

Según la página del manual , si está volcando tablas de InnoDB, puede usar --single-transaction opción:

--lock-tables, -l

Lock all tables before dumping them. The tables are locked with READ
LOCAL to allow concurrent inserts in the case of MyISAM tables. For
transactional tables such as InnoDB and BDB, --single-transaction is
a much better option, because it does not need to lock the tables at
all.

Para base de datos innodb :

mysqldump --single-transaction=TRUE -u username -p DB