Bug #60495 | mysqldump is locking myisam tables | ||
---|---|---|---|
Submitted: | 16 Mar 2011 17:41 | Modified: | 18 Mar 2011 15:48 |
Reporter: | Jamie Koc | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: mysqldump Command-line Client | Severity: | S2 (Serious) |
Version: | 5.1.44 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | lock tables, mysqldump |
[16 Mar 2011 17:41]
Jamie Koc
[16 Mar 2011 19:16]
Valeriy Kravchuk
I think our manual, http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html, clearly explains the situation you see: "Use of --opt is the same as specifying --add-drop-table, --add-locks, --create-options, --disable-keys, --extended-insert, --lock-tables, --quick, and --set-charset. All of the options that --opt stands for also are on by default because --opt is on by default." Then check http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_lock-tables ...
[18 Mar 2011 15:28]
Jamie Koc
Sorry I copied the wrong backup script that was executed. The --opt was not passed in. >mysqldump -u root -p dbname | gzip -c > YYYYMMDD-backup.sql.gz This was the backup that was run command that was run and tables were locking.
[18 Mar 2011 15:48]
Valeriy Kravchuk
Still my quote from the manual applies: "All of the options that --opt stands for also are on by default because --opt is on by default." This is intended and documented behavior.