解决MySQL远程登录时出现ERROR1130错误问题_MySQL
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了解决MySQL远程登录时出现ERROR1130错误问题_MySQL,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1378字,纯文字阅读大概需要2分钟。
内容图文
![解决MySQL远程登录时出现ERROR1130错误问题_MySQL](/upload/InfoBanner/zyjiaocheng/579/ec60109fc8f74aa6b8eedacb8647c915.jpg)
[root@openfire ~]# mysql -u root -h mysql.clvn.com.cn -p
Enter password:
ERROR 1130 (HY000): Host '192.168.0.15' is not allowed to connect to this MySQL server
解决方法:
[root@mysql ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 10
Server version: 5.1.71 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
mysql> GRANT ALL PRIVILEGES ON openfire.* TO 'root'@'192.168.0.15' IDENTIFIED BY 'redhat' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
再次进行登录测试
[root@openfire ~]# mysql -u root -h mysql.clvn.com.cn -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 22
Server version: 5.1.71 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
mysql> exit
Bye
问题解决
内容总结
以上是互联网集市为您收集整理的解决MySQL远程登录时出现ERROR1130错误问题_MySQL全部内容,希望文章能够帮你解决解决MySQL远程登录时出现ERROR1130错误问题_MySQL所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。