1. 问题:服务启动时,日志报错,导致启动失败:

Caused by: com.mysql.cj.exceptions.CJException: null,  message from server: "Host 'ip' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"

mysql 报 'Host ‘XXXXXX’ is blocked because of many connection errors'

 

 

 2. 解决:

(1)如果mysql 在当前机器,使用 mysql -u 用户名 -p  输入密码登录mysql

 (2)  如果mysql 不在当前机器,使用 mysql -h 主机地址 -u 用户名 -p 用户密码

 (3)  执行:flush hosts;

mysql 报 'Host ‘XXXXXX’ is blocked because of many connection errors'

 

ok

 

相关文章:

  • 2022-12-23
  • 2021-05-18
  • 2021-11-07
  • 2022-12-23
  • 2022-03-09
  • 2021-04-04
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案