开发者

Is it possible to list MySQL Server closed connections?

开发者 https://www.devze.com 2023-01-12 09:04 出处:网络
To list active connections we do: show processlist; What to do to list old closed connections开发者_Go百科?The simple answer is that there\'s nothing provided by MySQL to list old connections.But y

To list active connections we do:

show processlist;

What to do to list old closed connections开发者_Go百科?


The simple answer is that there's nothing provided by MySQL to list old connections. But you could capture the data flowing between your web front end and your database:

tcpdump -i eth0 -s 0 -w /tmp/mysql.cap tcp port 3306

run your PHP, have it fail, stop the capture and use Wireshark to see exactly what was going on.


I could obtain this nice answer from serverfault.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号