Shafqat Hamid
2005-Aug-24 06:33 UTC
[Asterisk-Users] RealTime ignoringswitch=>Realtime/context@realtime_ext
I am getting this error when reload my asterisk "cdr_addon_mysql.c:264 my_load_module: Unable to load config for mysql CDR's: cdr_mysql.conf" I don't have res_mysql.conf in /etc/asterisk/. I have res_odbc.conf which is attached Res_odbc.conf =============;;; odbc setup file [mysql1] dsn => MySQL-asterisk username => myuser password => mypass pre-connect => yes [mysql2] dsn => MySQL-asterisk username => myuser password => mypass pre-connect => yes Shafqat -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Matthew Boehm Sent: Wednesday, August 24, 2005 6:17 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] RealTime ignoringswitch=>Realtime/context@realtime_ext Araba, Michael wrote:> mail*CLI> realtime mysql status > Aug 24 00:56:50 ERROR[963]: res_config_mysql.c:596 mysql_reconnect: > MySQL RealTime: Failed to connect database server RealTimeMaster on > localhost. Check debug for more info. > Aug 24 00:56:50 DEBUG[963]: res_config_mysql.c:597 mysql_reconnect: > MySQL RealTime: Cannot Connect: Can't connect to local MySQL server > through socket '/tmp/mysql.sock' (2)Post your res_mysql.conf. Obviously you cannot login to your mysql box for some reason. Can you connect to mysql from your shell? -Matthew _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Matthew Boehm
2005-Aug-24 07:06 UTC
[Asterisk-Users] RealTime ignoringswitch=>Realtime/context@realtime_ext
> "cdr_addon_mysql.c:264 my_load_module: Unable to load config for mysql > CDR's: cdr_mysql.conf"This is a problem. Where are your config files?> I don't have res_mysql.conf in /etc/asterisk/.Well, there is your problem again. Why don't you have config files? You can't expect res_config_mysql to use the res_config_odbc config file can you? There are sample configs for both of these modules. How come you didn't install them? -Matthew