如何使用MySQL监控网络流量?
ifconfig -output 看起来有点混乱。 当我使用命令 (source) 看到下面的漂亮输出时,问题出现了:
是否有一些更结构化的方式,比如说 MySQL,看看ifconfig或者类似的数据?
如果我可以监控数据库中的网络流量,那就太酷了。
[prompt]$ mysqladmin -h localhost -u root -p processlist
+----+------+-----------+----+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+----+---------+------+-------+------------------+
| 15 | root | localhost | | Query | 0 | | show processlist |
+----+------+-----------+----+---------+------+-------+------------------+
ifconfig -output is somewhat messy thing to look at. When I saw the nice output below with the command (source), the question emerged:
Is there some more structured way, let say
MySQL, to look at ifconfig or similar data?
It would be cool, if I could monitor the network traffic in databases.
[prompt]$ mysqladmin -h localhost -u root -p processlist
+----+------+-----------+----+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+----+---------+------+-------+------------------+
| 15 | root | localhost | | Query | 0 | | show processlist |
+----+------+-----------+----+---------+------+-------+------------------+
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MySQL GUI工具和管理员工具允许您在一定程度上进行监控。 如果你想要原始数据包,你可以使用 Ethereal 或 Wireshark
MySQL GUI Tools and administrator tools allow you to monitor to some extent. if you want raw packets, you can either use Ethereal or Wireshark