Bug #63562 | unknown database information_schema | ||
---|---|---|---|
Submitted: | 3 Dec 2011 14:03 | Modified: | 25 Jul 2012 19:07 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | 5.1.60, 5.5.18 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 Dec 2011 14:03]
Peter Laursen
[3 Dec 2011 15:26]
Valeriy Kravchuk
I agree that 1) is something to fix. We have it in 5.1.x also: macbook-pro:5.1 openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 Server version: 5.1.60 Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create procedure information_schema.is() select 1; ERROR 1049 (42000): Unknown database 'information_schema' For cases 2) and 3) also some improvement is possible. In 5.1.x we have even less clear message: mysql> create table information_schema.t(c2 int); ERROR 1109 (42S02): Unknown table 't' in information_schema
[3 Dec 2011 16:19]
Peter Laursen
Inconsistence is also 1) CREATE SP and CREATE TABLE generate different errors on same database. Why? "CREATE denied [for user@host] to database" is an error message that tells what the problem is. "Access denied for user@host to database" is simply wrong IMHO. I have access to both databases! 2) Same operation to I_S and P_S returns different errors. They have same restriction with CREATE (+ DROP etc.) *any kind of object* (it is not possible - the schema is 'locked')). It would be consistent if the same error messages were returned with both databases.
[25 Jul 2012 19:07]
Paul DuBois
Test case changes (to demonstrate bug no longer present). No changelog entry needed.