I have been using asterisk 1.2.13 without any problems for around 5 months now on a centos 4.4 server. I have calls logged to mysql cdr database and some queue stuff loged to postgr sql database.
Mysql is on the same server.
Twice now in the last 24 hours I have received the following errors in the asterisk message log which has stopped the asterisk server. I had to type service asterisk start to get it running again.
Apr 3 07:41:45 ERROR cdr_addon_mysql.c: Failed to connect to mysql database asterisk on localhost.
Apr 3 07:41:45 ERROR res_config_mysql.c: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
Does anyone have any ideas on what to try. I would have thought if it failed to save call details to mysql it would just dump the data and keep asterisk running ??