某个主机上部署了很多应用进程,之前一直正常,今天某个WebApi突然报错,查看日志有如下提示
<ExceptionMessage>Host '***' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'</ExceptionMessage>
应该是多次用错误密码连接MySql失败,被加入黑名单了
找个MySql客户端连进去,执行如下命令后,WebApi恢复正常
flush hosts;
标签:WebApi,flush,hosts,无法,某个,连接,MySql From: https://www.cnblogs.com/PowerDesigner/p/16664820.html