I am not able to see the list of Databases which I have created in mysql (windows 7).
When I open phpmyadmin then I am able to see the list of Databases which I have created but not able to see them on command line.
I am getting following error
ERROR 1044 (42000): Access denied for users ''@'localhost' to database 'dbname1'
I have gone through the solutions given on this question ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db' but could not solved the issue.
When I enter SHOW DATABASES;
on command prompt, mysql only shows two databases:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.5.24-log MySQL Community Server (GPL)
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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.01 sec)
mysql>
But I have other Databases too.
I have one DB which has InnoDB collation
. Does it makes any sense for not displaying using SHOW DATABASES;
command?
If is enter below command then it also gives me an error
mysql> mysql -h localhost -u root -p;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql -h localhost -u root -p' at line 1
Any help would be appreciated.