How do you find out the last time a MySQL database was read or written to?
Can you even do that check per table?
SELECT UPDATE_TIME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbname' AND TABLE_NAME = 'tabname'
Source: How can I tell when a MySQL table was last updated?