连接我有经典many connections
错误在我的MySQL应用程序:如何跟踪在MySQL
exception 'PDOException' with message 'SQLSTATE[HY000] [1129] Host
'[IP ADDRESS]' is blocked because of many connection errors; unblock
with 'mysqladmin flush-hosts'' in /var/www/libs/Database.php:15
有大量写是什么原因导致,以及如何通过增加限制来解决这个问题,但我还没有能够确定的是如何调试我的代码。我宁愿关闭连接,而不是使用负载。
有什么方法可以查询MySQL来确定连接来自哪里以及它们已经打开了多久?
http://stackoverflow.com/questions/7432241/mysql-show-status-active-or-total-connections也许这会有所帮助 –
'show processlist;' –
可能的重复[如何查看实时MySQL查询?](http://stackoverflow.com/questions/568564/how-can-i-view-live-mysql-queries) –