首页 > 代码库 > 远程登录mysql
远程登录mysql
1130 - Host‘ClientIP‘ is not allowed to connect to this MySQL server。
解决方法:
使用root 用户登陆Linux,登陆MySQL的root用户,更改容许登陆的IP地址范围。
- [root@bugzilla ~]# mysql -u root -p
- mysql>grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘密码‘ with grant option;
这段指令容许所有用root用户输入密码登陆该mysql server,如果将‘%‘ 换成‘192.168.1.100‘ ,那么只有‘192.168.1.100‘的主机可以登陆。
远程登录mysql
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。