Host 'XXX' is not allowed to connect to this MySQL server 解决方法/开启Root MySQL远程帐号
2017-01-01 21:23
579 查看
1. 登录mysql:
mysql -uroot -p123456
或通过图形化客户端登录;
2. 对root账户进行授权:
grant all PRIVILEGES on test_db.* to root@'192.168.21.101' identified by '123456';
如果是对所有的ip都可访问,将具体ip换成%即可;
grant all PRIVILEGES on test_db.* to root@'%' identified by '123456';
123456为root密码。
3. 最后一步,最重要的一步,一定要执行下面语句,否则不会立刻生效的:
flush privileges;
阅读更多
相关文章推荐
- Host 'XXX' is not allowed to connect to this MySQL server 解决方法/开启MySQL远程账号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- 开启MySQL的远程帐号(Host 'XXX' is not allowed to connect to this MySQL server 解决方案)
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- mysql连接权限问题 Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号 1
- Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- 解决:MYSQL远程连接错误码:1130 Host 'xxx' is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法,Host '' is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- 怎么解决mysql不允许远程连接的错误1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server“
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server
- mysql 远程访问不行解决方法 Host is not allowed to connect to this MySQL server