Jacob
Jacob

Reputation: 449

Check MySQL query history with date and time

Is it possible to display all query executed in specific database with date and time?

I've tried

cat ~/.mysql_history

but it won't show when the query executed.

Upvotes: 0

Views: 2824

Answers (1)

danblack
danblack

Reputation: 14691

A general_log, not enabled by default will record all queries against a database server. If only modification statements are needed you may be able to look at the binary log (if enabled) with mysqlbinlog.

Upvotes: 1

Related Questions