Question : watch mysql command line
Answered by : wideeyed-walrus-5njsrkk5pm62
watch -n 1 "mysql -e 'select id from updates order by id desc limit 1' your_db"
Source : https://stackoverflow.com/questions/6913803/auto-refreshing-mysql-query-on-linux-commandline | Last Update : Thu, 02 Dec 21