Bug #13783 mysqlcheck tries to optimize and analyze information_schema
Submitted: 5 Oct 2005 20:02 Modified: 18 Oct 2005 9:48
Reporter: Markus Popp Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.13-rc-nt/BK 5.0.15 OS:Windows (Windows XP/Linux)
Assigned to: Sergei Glukhov CPU Architecture:Any

[5 Oct 2005 20:02] Markus Popp
Description:
The command mysqlcheck --all-databases --analyze --optimize fails, because it also tries to analyze and optimize the information_schema tables, which it can't.

How to repeat:
E:\>mysqlcheck --all-databases --analyze --optimize -u root
Enter password: *******
mysqlcheck: Got error: 1044: Access denied for user 'root'@'localhost' to
database 'information_schema' when executing 'OPTIMIZE TABLE ... '

E:\mysql_dump>

Suggested fix:
information_schema should be excluded from this command.
[13 Oct 2005 11:20] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/31016
[13 Oct 2005 14:14] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/31030
[18 Oct 2005 9:24] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/31207
[18 Oct 2005 9:26] Sergei Glukhov
Fixed in 5.0.15
[18 Oct 2005 9:48] Stefan Hinz
Added to 5.0.15 changelog.
[6 Nov 2005 19:59] Carsten Wiedmann
This Bug is still open in the sources for 5.0.15. Will you include this patch in the next version (5.0.16)?
[13 Nov 2005 20:14] John May
5.0.15 Standard for OS X does not fix this (non-installer version).

- John
[10 Jan 2008 14:12] Hartmut Holzgraefe
The actual fix was indeed in 5.0.16 only, not 5.0.15