本文主要是介绍远程连接mysql出现ERROR 1130 (HY000): Host ‘xxx.xxx.xxx.xxx’ is not allowed to connect to this MySQL server,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题:
远程连接服务器mysql出现:
ERROR 1130 (HY000): Host ‘xxx.xxx.xxx.xxx’ is not allowed to connect to this MySQL server
解决:
1.命令行输入 :mysql -u -root -p
然后输入密码
2.然后输入sql语句:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '数据库密码' WITH GRANT OPTION;
3.接着输入语句:flush privileges;
最后:完事~
这篇关于远程连接mysql出现ERROR 1130 (HY000): Host ‘xxx.xxx.xxx.xxx’ is not allowed to connect to this MySQL server的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!