1. 程式人生 > >MySQL 資料庫 1129錯誤

MySQL 資料庫 1129錯誤

錯誤:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

原因:

  同一個ip在短時間內產生太多(超過mysql資料庫max_connection_errors的最大值)中斷的資料庫連線而導致的阻塞;

解決方法:

1、提高允許的max_connection_errors數量(治標不治本): 

  修改MySql配置檔案my.ini,在[mysqld]下面新增max_connect_errors=1000,然後重啟MySql。

       重啟mysql的方法:

       停止:輸入 net start mysql

       啟動:輸入 net stop mysql

2、使用mysqladmin flush-hosts 命令清理一下hosts檔案:

執行:mysqladmin flush-hosts -h 127.0.0.1 -u[使用者名稱] -p命令

      然後輸入密碼。

      執行flash需要reload許可權。