主机被锁问题
描述:"Host ‘113.109.111.217’ is blocked because of many connection errors
原因:同一个ip在短时间内产生太多中断的数据库连接而导致的阻塞;
超过mysql数据库max_connection_errors的最大值;
解决方法:用管理员进入到数据库中, 执行命令 flush hosts;
示例:
[shy@CentOS ~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37147
Server version: 5.7.38 MySQL Community Server (GPL)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> flush hosts;
Query OK, 0 rows affected (0.00 sec)