访问网站出现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为用户密码。
grant all on xxx.* to 'root'@'%' identified by 'password' with grant option;
其中:xxx代表创建的数据库; password为用户密码。
相关文章推荐
- mysql创建数据库后出现Access denied for user 'root'@'%' to database 'xxx'
- 解决mysql创建数据库后出现:Access denied for user 'root'@'%' to database 'xxx'的问题
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- MySQL Access denied for user 'root'@'%' to database 'xxx'
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- MySQL Access denied for user 'root'@'%' to database 'xxx'
- mysql切换数据库时会报错:ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- Access denied for user 'root'@'192.168.12.249' to database 'zc_beauty'
- mysql忘记root密码或报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘xx‘
- Access denied for user 'root'@'%' to database 'ranger' ErrorCode: 1044
- 关于用jdbc访问云数据库mysql Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)问题
- ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'test'
- 远程 mysql access denied for user 'root'@'%' to database xxxx
- 解决Mysql出现Access denied for user ''@'localhost' to database '的问题
- CGI+MySQL: Access denied for user 'root'@'%' to database '
- Mysql初次启动修改root账户密码的方法(解决Access denied for user ''@'localhost' to database 'mysql的方法)
- 安装mysql 出现错误Unable to update security settings. Access denied for user 'root'@'localhost' 的解决
- linux 下安装MySQL出现问题 Access denied for user ''@'localhost' to database 'mysql'
- ubuntu mysql root 进入出现ERROR 1044(42000):Access denied for user ''@'localhost' to database 'mysql'
- mysql root 进入出现ERROR 1044(42000):Access denied for user ''@'localhost' to database 'mysql'