ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'test'
创建数据库时出现的错误:ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'test'
mysql> use information_schema;
mysql> select * from SCHEMA_PRIVILEGES;
Empty set (0.00 sec)
mysql> select * from USER_PRIVILEGES ;
+----------------+---------------+----------------+--------------+
| GRANTEE | TABLE_CATALOG | PRIVILEGE_TYPE | IS_GRANTABLE |
+----------------+---------------+----------------+--------------+
| ''@'localhost' | NULL | USAGE | NO |
+----------------+---------------+----------------+--------------+
1 row in set (0.00 sec)
改怎么解决?谢谢
------解决思路----------------------
你是如何连接数据库的?有没有输入你的账号?
--转自