[RESOLVED]CBMySQL:cannot connect todatabase server localhost


#1

Hello,

I hava a problem when I want to connect to my mysql database.
I have A@H 2.5 and I installed Web meetme v2.0.0.
After some issues resolved, I can’t manage to find this one.

I configured cbmysql.conf as
[global]
hostname=localhost
dbname=DB_CDR
password=passw0rd
user=root
port=3306
;/tmp/mysql.sock
sock=/var/lib/mysql/mysql.sock
DBOpts=yes ; Store flags in the database
OptsAdm=asdp ; Standard flags for Admins if not using db
OptsUsr=sdp ; Standard flags for users if not using db
ConfApp=MeetMe
ConfAppCount=MeetMeCount

and I can connect to the database with a single php script with these parameters.

My extension.conf is

[meetme2]
exten => 8600,1,Answer
exten => 8600,2,Wait(1)
exten => 8600,3,CBMysql() ; Validates passwords, starttime, etc;
exten => 8600,4,Hangup

So when I call 8600, I can’t manage to join the conference stored in the DB.
And in my debug log I find :

Mar 2 14:19:14 VERBOSE[5636] logger.c: – Executing CBMySQL(“SIP/toto-c475”, “”) in new stack
Mar 2 14:19:14 DEBUG[5636] channel.c: Scheduling timer at 160 sample intervals
Mar 2 14:19:14 VERBOSE[5636] logger.c: – Playing ‘conf-getconfno’ (language ‘en’)
Mar 2 14:19:14 DEBUG[5636] channel.c: Scheduling timer at 0 sample intervals
Mar 2 14:19:16 ERROR[5636] app_cbmysql.c: CBMySQL: cannot connect to database server localhost
Mar 2 14:19:16 DEBUG[5636] channel.c: Scheduling timer at 160 sample intervals
Mar 2 14:19:16 VERBOSE[5636] logger.c: – Playing ‘conf-invalid’ (language ‘en’)

Is there sbdy who has the same issue or an idea ?
Thanks very much.

Squale


#2

I managed to connect after having recompiled app_cbmysql.c and restarted asterisk…