什么是最新插入的好MySQL监视器?


0

我正在寻找一个工具,它将显示MySQL表中的最新信息并每隔几秒更新一次。问题是我真的不知道如何寻找它,或者我甚至真正想要的东西!

我目前正在运行此查询:

SELECT hostName,email,info,MAX(id),time FROM log u WHERE time> =   DATE_SUB(NOW(),INTERVAL 1 DAY)GROUP BY hostName ORDER BY time DESC

这给了我我想要的东西,但我想要一些简单的GUI来监控最新信息..

Answers:


0

GUI?为什么?

在命令行执行以下操作:

while true; do
mysql -u username -h hostname -p password -e "SELECT hostName, email, info, MAX(id), time FROM log u WHERE time >= DATE_SUB(NOW(), INTERVAL 1 DAY) GROUP BY hostName ORDER BY time DESC"
sleep 5
done
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.