How do you find out the last time a MySQL database was read or written to?
Can you even do that check per table?
If your database has bin logs switched on, you can get the last update time using mysqlbinlog.
If your database has query logging enabled, you can get the last query time (either updates or selects) by tailing the query log.