我是靠谱客的博主 眯眯眼康乃馨,最近开发中收集的这篇文章主要介绍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‘ is not allowed to connect to this MySQL serverConnection closed by foreign所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(53)

评论列表共有 0 条评论

立即
投稿
返回
顶部