I am working with a database that, unfortunately, has many unused tables, and I'm trying to clear it. I am trying to find a way that I can be 100% sure that a particular table is no longer in use.
After some searches, I still cannot find a good way to do this. I can only say the last entries in the table (INSERT, UPDATE, etc.) Using:
SHOW TABLE STATE or run ls -ltmysql in datadir (can be found by running SHOW VARIABLES LIKE 'datadir';)
Do you have any other suggestions?
Thank.
source
share