Jump to content

Archived

This topic is now archived and is closed to further replies.

roopurt18

Determine Last Access Date for All Tables in a DB

Recommended Posts

Is there a query that will return the last date all of the tables in a database were last accessed?  By accessed I mean data inserted, retrieved, or other such operations.

I ask because I've inherited a project that has a lot of tables that need to go.  I've done what I can to eliminate some of them but I want to make sure there's no application code still running queries on them.

Share this post


Link to post
Share on other sites
At least for MyISAM tables, SHOW TABLE STATUS returns a column named update_time.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.