You can use mysql scheduler to run it each 5 seconds. You can find samples at http://dev.mysql.com/doc/refman/5.1/en/create-event.html
Never used it but I hope this would work:
CREATE EVENT myevent
ON SCHEDULE EVERY 5 SECOND
DO
CALL delete_rows_links();
More Related Contents:
- MySQL stored procedures use them or not to use them
- MySQL triggers cannot update rows in same table the trigger is assigned to. Suggested workaround?
- How do you debug MySQL stored procedures?
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Is there a MySQL option/feature to track history of changes to records?
- Can I create view with parameter in MySQL?
- Using an Alias in SQL Calculations
- MySQL stored procedure vs function, which would I use when?
- mysql dynamic query in stored procedure
- Check for x consecutive days – given timestamps in database
- MySQL Insert Into from one Database in another
- How do I get the ID of multiple inserted rows in MySQL?
- Dynamic table names in stored procedure function
- passing LIMIT as parameters to MySQL sproc
- How do I show the schema of a table in a MySQL database?
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- MySQL concatenating all columns
- Remove special characters from a database field
- MySQL Stored Procedure Error Handling
- Proper database model for a user feedback system (an interesting case)
- How big can a MySQL database get before performance starts to degrade
- How to get multiple records against one record based on relation?
- Easiest way to copy a table from one database to another?
- What is the best way to store media files on a database?
- How to use a user variables in MySQL LIKE clause?
- remove all numeric characters from column mysql
- Selecting distinct 2 columns combination in mysql
- Inventory management with stock options
- Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)