Execute SQL ?

Tai

Member
can some one show me how to execute some sql every hour or before a restart ? I have a few sql queries that I would love the server to run over time.

thanks.
 
use the 999 method from hiveext.dll, and run a scheduler written in sqf on your server,
 
I run a dayz.st server too. And I also thought that the MySQL scheduler was not enabled, and I didn't have the privileges to enable it.
But just now, I have discovered that I am allowed to create events, and they are really fired regularly according to their schedule.

Example:
CREATE EVENT removeDamagedVehicles
ON SCHEDULE EVERY 3 HOUR
COMMENT 'Removal of destroyed vehicles'
DO
begin
DELETE FROM instance_vehicle WHERE damage = 1;
end;
 
Back
Top