My bot dies when the mysql server goes down and while the server doesnt go down often it is a little frustrating so I wanted to know if there is anything I can do to prevent this happening as it also wont start back up if it cant connect to the mysql server.
Basically the code to connect is very simple so I wondered if I can add something to it to protect against it
# Connect to the database
loadmodule mysql
mysql_connect $database $host $user $pass
Last edited by ShavdApe on Mon Sep 28, 2009 2:55 am, edited 1 time in total.