ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'(示
Posted 孙猴子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'(示相关的知识,希望对你有一定的参考价值。
1.问题
在刚刚安装mysql之后,进入到mysql环境下,创建数据库,出现下面的提示信息:
ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘db‘
2.原因
未用账号登录,而是直接用mysql进入,只拥有查看的权限;
3.解决方案
3.1 使用exit;退出mysql环境;
mysql> exit;
3.2 重新使用账号登录
mysql -u root -p
以上是关于ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'(示的主要内容,如果未能解决你的问题,请参考以下文章
mysql ERROR 1044 (42000): Access denied for user ''@'localhost' to database
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ambari
[故障解决]Mysql爆出ERROR 1044 (42000)的错误怎么办?
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql
解决 ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql&
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'(示