2013-03-12, 09:03 PM
I have a script that uploads logs to mysql database constantly. However these logs are viewed for about 10 seconds then they are pushed away. Is there anyway I can set a max number of rows for a table in MySQL? This would allow old ones to be automatically deleted as new ones push them out?
If not possible, how would I use a cron job to do this?
Basically I just don't want the tables to get more than 500 rows.
If not possible, how would I use a cron job to do this?
Basically I just don't want the tables to get more than 500 rows.