Is it possible to auto delete data/row from my database
after a certain time? eg. after 3months
I'am using phpmyadmin for my database.
Is it possible to auto delete data/row from my database
after a certain time? eg. after 3months
I'am using phpmyadmin for my database.
You can schedule events in mysql.
Have a look on this http://dev.mysql.com/doc/refman/5.1/en/events.html
Yes, you can do the following:
It's not related to phpmyadmin, btw.
You can use CRON for that.
If you have a linux server, you can install crontab, and if not, you have some website like http://www.cronjobonline.com/..
You can use MySQL events ..as
CREATE EVENT delete_class_data
ON SCHEDULE EVERY 7 DAY
DO
DELETE FROM <code>class</code>;
and delete specific data older than 7 days..are whatever you want. You can include date of entry in that table.