ifconfig -output 看起来有点乱。当我使用命令 (source) 看到下面的漂亮输出时,问题出现了:
Is there some more structured way, let say MySQL, to look at ifconfig or similar data?
如果我可以监控数据库中的网络流量,那就太好了。
[prompt]$ mysqladmin -h localhost -u root -p processlist
+----+------+-----------+----+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+----+---------+------+-------+------------------+
| 15 | root | localhost | | Query | 0 | | show processlist |
+----+------+-----------+----+---------+------+-------+------------------+
最佳答案
MySQL GUI 工具和管理员工具允许您在一定程度上进行监控。如果你想要原始数据包,你可以使用 Ethereal 或 Wireshark
关于mysql - 如何使用 MySQL 监控网络流量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1082053/