我是靠谱客的博主 眯眯眼康乃馨,这篇文章主要介绍MySQL连接出现问题:‘ipiAddress‘ is not allowed to connect to this MySQL serverConnection closed by foreign,现在分享给大家,希望可以做个参考。
问题描述:
@Host ‘ipAddr’ is not allowed to connect to this MySQL serverConnection closed by foreign host.
原因分析
应该是Mysql的IP地址被锁定了
解决办法
将root用户登录IP全部开放出来
select user,host from mysql.user where user = 'root';
## 如果host != '%' 将其改为'%'
update mysql.user set host='%' where user = 'root';
## 最后一步千万不能忘记=======》刷新权限
flush privileges;
最后
以上就是眯眯眼康乃馨最近收集整理的关于MySQL连接出现问题:‘ipiAddress‘ is not allowed to connect to this MySQL serverConnection closed by foreign的全部内容,更多相关MySQL连接出现问题:‘ipiAddress‘内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复