ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。
Posted song.yan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。相关的知识,希望对你有一定的参考价值。
问题描述:新买的服务器,刚安装了mysql,创建了一个用户,也忘记了给他分配了什么权限,今天在建库的时候出现了这个问题。
出错原因:度娘告诉我是因为songyan用户没有建库的权限报的错。
解决:
(1)登陆mysql
mysql -u root -p
(2)分配权限
GRANT ALL PRIVILEGES ON *.* TO \'username\'@\'%\' IDENTIFIED BY \'password\' WITH GRANT OPTION;
以上是关于ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。的主要内容,如果未能解决你的问题,请参考以下文章
mysql ERROR 1044 (42000): Access denied for user ''@'localhost' to database
Error Code: 1044. Access denied for user 'root'@'%' to database
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ambari
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'(示