[Asterisk-Users] cdr mysql problem

Christian Victor christian at victormedia.de
Fri Dec 16 05:57:02 MST 2005


> I've just compiled asterisk-addon1.2.1 after installing MySQL and 
> MySQl-devel packages. and adjust my cdr_mysql.conf to use the defined 
> database using username and password. But as soon as starting asterisk 
> i get error messages informing me of error, error message is as 
> follows : cdr_addon_mysql.c : Failed to connect mysql database cdr on 
> localhost" and "res_config_mysql.c : Failed to connect database server 
> on ."
>
> Im realy lost and dont know whats wrong. I've checked the connection 
> to MySql in command line using the same user and host and its been 
> connected without any problem.
>
> Anyone has any idea whats wrong here.
> Regards.
> ---
At least the second is just the usual error message when you don't use 
MySQL for realtime configuartion. Shouldn't affect your cdr_mysql.

Is the name of the _database_ really cdr? By default it is asteriskcdrdb.

Chris



More information about the asterisk-users mailing list