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

来源:互联网 发布:line安卓版 无网络 编辑:程序博客网 时间:2024/05/18 17:56

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

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

其中:xxx代表创建的数据库; password为用户密码。

阅读全文
0 0
原创粉丝点击