6 月 232016
MySQL Workbench
Failed to Connect to MySQL at xxx.xxx.xxx.xxx:3306 with user ssrdba Host '113.118.138.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
用于防止暴力猜解密码的安全设置。
同一IP在一段时间内产生超过系统参数指定的已断开数据库连接次数,系统强制不再接受任何连接请求。
系统默认参数值
解除锁定的方法
[root@iZ94ns7f32vZ ~]# mysqladmin -uroot -p flush-hosts
Enter password:
[root@iZ94ns7f32vZ ~]#
修改参数值
set global max_connect_errors = 100;
或修改my.cnf配置文件
max_connect_errors = 100