mysql会有too many connections的问题,有时候明明connection允许连接很多了,但还是会有
is blocked beacuse of many connection errors; unblock with 'mysqladmin flush-hosts'这样的错误。很多时候不是连接数量限制的问题,而是需要把连接计数清零。
在mysql中运行:

flush hosts;
然后就可以了。
本文介绍了一种常见MySQL错误too_many_connections的解决方案。即使允许的连接数未达到上限,也可能遇到连接被阻塞的情况。文章提供了一个简单的方法来解决这个问题,通过运行flushhosts命令来重置连接计数。
mysql会有too many connections的问题,有时候明明connection允许连接很多了,但还是会有
is blocked beacuse of many connection errors; unblock with 'mysqladmin flush-hosts'这样的错误。很多时候不是连接数量限制的问题,而是需要把连接计数清零。
在mysql中运行:

flush hosts;
然后就可以了。
1万+
1553
1464
7458
388
1712
243

被折叠的 条评论
为什么被折叠?