錯誤:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'mysql
緣由:同一個ip在短期內產生太多(超過mysql數據庫max_connection_errors的最大值)中斷的數據庫鏈接而致使的阻塞;sql
解決方法:數據庫
使用mysqladmin flush-hosts 命令清理一下hosts文件(不知道mysqladmin在哪一個目錄下能夠使用命令查找:whereis mysqladmin);spa
① 在查找到的目錄下使用命令修改:/usr/bin/mysqladmin flush-hosts -h192.168.1.1 -P3306 -uroot -prootpwd;ip
備註:it
其中3306端口號,root用戶名,rootpwd密碼均可以根據須要來添加和修改;io