Hello !
I have an error handler for database errors. Now i have the problem that mysql sometimes goes away. For this issue, i reboot the mysql server every night with cron schedule job in taskmanager.
Now, i have a new idea. Why not restart via @ command the server in case of trouble ?
But my code doesn't work:
See:
function mysql_errorhandler($problem, $query = ""){
if ($problem == "MYSQL SERVER DOWN"){
@("net start mysql",$msqc1,$msqc2);
$startcheck="1";
}
}
What's wrong ??