--single-transaction
option with --quick
.http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_quick
--single-transaction
It will allow the live application to use the mysql database as normal without locking any tables and preventing the application to change the database.
In most of case, we have to avoid to use "extended insert" , It will generate too many command line (sql commands)
DO NOT USE "mysqldump --extended-insert", especially huge table!
instead of "mysqldump --extended-insert=FALSE"
$delaypersession = 6000; // how many micro seconds delay after one session
沒有留言:
張貼留言