I recently upgraded to MySQL 5.1.6 to take advantage of the ability to save a common log in a table -> that is, mysql.general_log. As soon as I did this, I was immediately surprised how many queries actually hit our system. I have about 40,000 rows in this general log table from the first hour. I did not find it in MySQL docs about whether the overall size of the log table exists.
Is there a problem allowing this general magazine to grow at such a rate?
If there is a problem with size, how to deal with it?
Is there any accepted practice on how to deal with the size problem, if any?
Should I make an event to clear the table and save the data to a file so often?
Thank you very much for your help!
source
share