Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When was the last time a mysql table was accessed?

Tags:

mysql

Is there a way to tell the last access time of a mysql table? By access I mean any type of operation in that table including update, alter or even select or any other operation.

Thanks.

like image 247
Ferdous Avatar asked Apr 23 '11 06:04

Ferdous


1 Answers

You can get the last update time of a table.

SELECT update_time FROM information_schema.tables WHERE table_name='tablename'
like image 54
BrandonG Avatar answered Oct 21 '22 10:10

BrandonG