Bug #37748 | mysqldump shows misleading error messages when backingup mysql database | ||
---|---|---|---|
Submitted: | 30 Jun 2008 18:05 | Modified: | 3 Feb 2009 14:08 |
Reporter: | Hema Sridharan | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: mysqldump Command-line Client | Severity: | S3 (Non-critical) |
Version: | 5.1,6.0 BZR | OS: | Linux |
Assigned to: | Davi Arnaut | CPU Architecture: | Any |
[30 Jun 2008 18:05]
Hema Sridharan
[1 Jul 2008 18:14]
Sveta Smirnova
Thank you for the report. Verified as described. Probably duplicate of bug #34306. Test case: select 1; --exec $MYSQL_DUMP mysql general_log Options: --log-output=TABLE --log
[3 Nov 2008 17:41]
van pham
I ran into similar problem but it have to do with loading the data back into Mysql. When I try to load data from a mysqldump taken from another machine (same os and hardware), I receive this error: [root@green old]# mysql -u root -p directory < slave_blue.sql Enter password: ERROR 1556 (HY000) at line 2537: You can't use locks with log tables. How do I resolve this problem ? How do I load data into this server if I cannot get around the problem of ERROR 1556 (HY000)and is there anything in my my.cnf that may have triggger this bug ?
[2 Feb 2009 13:54]
Konstantin Osipov
Log tables do not quite belong to mysql database - in future they will be moved to performance_schema database (see Bug#31764). When you issue mysqldump mysql log tables are skipped automatically. This works with any fairly recent mysqldump (i.e. you need mysqldump from 5.1 installation, the installation which first ships log tables). When you try mysqldup mysql general_log you need to specify --skip-lock-tables, since LOCK TABLE statement is not supported with log tables. This is documented, and therefore this bit of behavior is not a bug. Please re-triage, and better yet, re-verify: I don't see what can be fixed in this case.
[2 Feb 2009 13:55]
Konstantin Osipov
The automatic skipping of log tables in the dump was added in scope of the fix for Bug#26121
[3 Feb 2009 14:08]
Davi Arnaut
Closing as Not a Bug after the last comments from Konstantin. If one wants to dump a log table, it's necessary to specify the --skip-lock-tables option.
[30 Jan 2013 21:15]
Eric Frazier
It is helpful to know how to avoid now, but I think this is an issue because a user shouldn't have to know this special trick to just to use -A. Thanks, Eric