ERROR 1129 (00000): #HY000Host ‘*.*.*.*’ is blocked because of many connection errors;

今天使用工具nvicat连接mysql的时候报错误:
         ERROR 1129 (00000): #HY000Host ‘*.*.*.*’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’。
 

解决办法:
      使用mysqladmin flush-hosts命令清除缓存,命令执行方法如下:

     1、命令行或终端:

mysqladmin -u root -p flush-hosts

       接着输入root账号密码即可. 
  2、修改mysql配置文件,在[mysqld]下面添加 max_connect_errors=1000,然后重启mysql.

你可能感兴趣的:(爬虫-部署服务器)