mysql errors:message from server: "Host 'xxx' is blocked because of many connection errors; unblock

mysql errors:message from server: "Host 'xxx' is blocked because of many connection errors; unblock

原创  2014年06月06日 11:26:19

忽然一天,数据库连接抛了异常:null,  message from server: "Host 'PC-20130201IBXI' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"。

话说是同一IP短时间内连接数据库太多二致,记得以前也出现过这种错,解决办法记下(windows机器):

1:登录mysql控制台:mysql -uroot -p

2:flush hosts

网上很多解决方案都试过,不是报错就是无效,试了好久,以上是适合我机器的解决方案。

忽然一天,数据库连接抛了异常:null,  message from server: "Host 'PC-20130201IBXI' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"。

话说是同一IP短时间内连接数据库太多二致,记得以前也出现过这种错,解决办法记下(windows机器):

1:登录mysql控制台:mysql -uroot -p

2:flush hosts

网上很多解决方案都试过,不是报错就是无效,试了好久,以上是适合我机器的解决方案。

猜你喜欢

转载自blog.csdn.net/xll_csdn/article/details/79043025
今日推荐