远程 mysql access denied for user 'root'@'%' to database xxxx
2014-10-10 16:15
465 查看
使用Naicat Premium远程连接的mysql上面创建了一个新数据库和新的用户后,给该用户添加这个新数据库权限时出现:access denied for user 'root'@'%' to database xxxx的提示。
错误的原因是root用户在远程连接的MYSQL上面,没有这个新数据库的授权。在本地使用mysql应该不存在这个问题。
解决方法,执行授权:
grant all PRIVILEGES on xxxx.* to root@'%' identified by 'password' with grant option;
xxxx为创建的数据库,password为root的密码。请按实际要求进行更改。
该命令详细的使用方法,请参考host
xxx is not allowed to connect to this MySQL
转载自 http://www.wodernet.com/4/403/20130317/579.html
错误的原因是root用户在远程连接的MYSQL上面,没有这个新数据库的授权。在本地使用mysql应该不存在这个问题。
解决方法,执行授权:
grant all PRIVILEGES on xxxx.* to root@'%' identified by 'password' with grant option;
xxxx为创建的数据库,password为root的密码。请按实际要求进行更改。
该命令详细的使用方法,请参考host
xxx is not allowed to connect to this MySQL
转载自 http://www.wodernet.com/4/403/20130317/579.html
相关文章推荐
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- [mysql_error]: Access denied for user 'root'@'%' to database 'image' 错误解决
- Mysql初次启动修改root账户密码的方法(解决Access denied for user ''@'localhost' to database 'mysql的方法)
- mysql错误:Access denied for user 'root'@'172.19.100.123' to database 'android'
- 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 'xxx'
- CGI+MySQL: Access denied for user 'root'@'%' to database '
- mysql忘记root密码或报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘xx‘
- ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- mysql切换数据库时会报错:ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- 解决mysql创建数据库后出现:Access denied for user 'root'@'%' to database 'xxx'的问题
- ubuntu mysql root 进入出现ERROR 1044(42000):Access denied for user ''@'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 'mysql'
- 1044-Access denied for user 'root'@'%' to database databaseTest 错误
- 安装mysql 出现错误Unable to update security settings. Access denied for user 'root'@'localhost' 的解决
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' .