0

Is there a way to (from the command line) continuously dump new rows added to a table? As a comparison, in Bash we have tail -f to 'live-dump' a file as it gains data. How could this be done for a MySQL table without a continuous loop to check for new rows?

Ryan Griggs
  • 963
  • 2
  • 14
  • 29

1 Answers1

1

The MySQL General Query log can be used to log all queries. If you set the following in my.cnf

log_output = TABLE

The log will write out to $mysql_data_directory/general_log.CSV Youll be able to tail this to see all the writes/new rows written.

Sirch
  • 5,785
  • 4
  • 20
  • 36