ITPub博客

首页 > 数据库 > MySQL > MySQL Access denied for user 'root'@'%' to database 'xxx'

MySQL Access denied for user 'root'@'%' to database 'xxx'

原创 MySQL 作者:jyb2014 时间:2014-10-23 15:35:09 0 删除 编辑
创建数据库时报错
Access denied for user 'root'@'%' to database 'xxx'
原因是由于该用户没有授权,使用root登陆到MySQL后执行如下命令即可:
grant all on *.* to 'root'@'%' identified by '123456' with grant option;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29753604/viewspace-1308132/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-07-15

  • 博文量
    101
  • 访问量
    196521