On my virtual dedicated linux server, there are always some php jobs running. These jobs keep writing data in different tables. I was wondering, what happens if i need to restart my mysql server as i have made some config changes? Will all the running jobs be killed if i restart my mysql server ? or will they be on hold for a while , throwing error while the server is being restarted?
Thanks for your help
If you put a bit of code around the actual mysql php calls, you can catch the errors and deal with them.
}
// end mquery
If you find that you have other errors that may succeed if you wait a little while, then add them.
For errors that won’t succeed no matter how long you wait, add them to the ‘break’ block of code.