Forum Moderators: coopster
Is it possible to just rm files in the data directory?
i.e. in the mysql databases directory, sort by last access date and delete any file which has not been accessed for x months.
Could use find to locate and delete the files. Could also setup a cron job to automatically delete.
Is physically deleting tables and their indexes really a bad idea? Are there pointers to the files like in a master mysql index or something?
I'm not too bothered about that as it's probably highly unlikely that this would happen.
What I am concerned about is if there is any kind of master file / index which keeps tabs on all the tables.
e.g. when you do a show databases or show tables, does mysql just physically read what is in the data dirs or does it look up in an index?