错误:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hos(代
Posted Bodi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hos(代相关的知识,希望对你有一定的参考价值。
错误:mysql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts‘
解决方法:
使用mysqladmin flush-hosts 命令清理一下hosts文件(不知道mysqladmin在哪个目录下可以使用命令查找:whereis mysqladmin);
在查找到的目录下使用命令修改:/usr/bin/mysqladmin flush-hosts -h192.168.1.1 -P3308 -uroot -prootpwd;
备注:
其中端口号,用户名,密码都可以根据需要来添加和修改;
配置有master/slave主从数据库的要把主库和从库都修改一遍的(我就吃了这个亏明明很容易的几条命令结果折腾了大半天);
第二步也可以在数据库中进行,命令如下:flush hosts;
以上是关于错误:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hos(代的主要内容,如果未能解决你的问题,请参考以下文章
Host is blocked because of many connection errors
MairaDB中,MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush
MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts
MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts
mysql host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts
问题: Host "xxx" is blocked because of many connection errors,unblock with 'mysqladmin f