ERROR 1129 (HY000): Host '192.168.7.210' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'


一、问题现象

mysql远程连接报错

ERROR 1129 (HY000): Host '192.168.7.210' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

二、问题原因

一般max_connect_errors = 10,要调高错误连接的数量

三、解决方法

登录到要连接的数据中,进行如下配置

mysql> show variables like 'max_connect_errors';
mysql> set global max_connect_errors = 1000;                       # 如果想长期生效,并修改my.cnf配置文件
mysql> flush hosts;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM