您的位置:首页 > 运维架构 > 网站架构

访问网站出现Access denied for user 'root'@'%' to database 'xxx'

2017-06-19 14:01 621 查看
在linux下连接了数据库之后,网页上显示Access denied for user 'root'@'%' to database 'xxx'的字样时, 通过数据库授权:

grant all on xxx.* to 'root'@'%' identified by 'password' with grant option;

其中:xxx代表创建的数据库; password为用户密码。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐