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;

完毕!!!

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