node鏈接mysql數據報 unblock with mysqladmin

  • 啓動node服務端端

   throw err; // Rethrow non-MySQL errors
      ^

Error: ER_HOST_IS_BLOCKED: Host '188.131.xx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

是因爲 同一個ip在短時間內產生太多中斷的數據庫連接而導致的阻塞,超過mysql數據庫max_connection_errors的最大值

解決方案: 

  •  查看mysql安裝目錄  whereis mysql 
  • 進入mysql控制檯  mysql -uroot -p
  • 執行:flush hosts;

完畢!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章