MySQL 数据库 1129错误

错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

原因:

  同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞;

解决方法:

1、提高允许的max_connection_errors数量(治标不治本): 

  修改MySql配置文件my.ini,在[mysqld]下面添加max_connect_errors=1000,然后重启MySql。

       重启mysql的方法:

       停止:输入 net start mysql

       启动:输入 net stop mysql

2、使用mysqladmin flush-hosts 命令清理一下hosts文件:

      执行:mysqladmin flush-hosts -h 127.0.0.1 -u[用户名] -p命令

      然后输入密码。

      执行flash需要reload权限。

猜你喜欢

转载自blog.csdn.net/weixin_42434300/article/details/81301440
今日推荐