MySQL – Tail -f Equivalent for MySQL Logging Database

loggingMySQL

It was decided that we should move to using a (MySQL) database for our application logs (it is a Java app using the logback lib). I am hoping to find something like tail -f that I can use with a specific table in that database that will show me new rows as they are added (similar to how tail -f worked on log files).

Best Answer

Turn on MySQL binary logging. Then you can use the mysqlbinlog command to see all data-modifying statements.