Hello Everyone, 

I am trying start kamailio 4.2 with remote mysql server and on debug I see 
DEBUG: db_mysql [km_my_con.c:94]: db_mysql_new_connection(): opening 
connection: mysql://xxxx:xxxx@localhost/kamailio 
but in cfg defined actual mysql server ip and not localhost 

0(28885) DEBUG: <core> [sr_module.c:695]: find_mod_export_record(): 
find_export_record: found <db_bind_api> in module db_mysql 
[/usr/lib64/kamailio/modules/db_mysql.so] 
0(28885) DEBUG: <core> [db.c:213]: db_bind_mod(): using db bind api for 
db_mysql 
0(28885) DEBUG: <core> [db.c:318]: db_do_init2(): connection 0x7faca59eced8 not 
found in pool 
0(28885) DEBUG: db_mysql [km_my_con.c:94]: db_mysql_new_connection(): opening 
connection: mysql://xxxx:xxxx@localhost/kamailio 
0(28885) ERROR: db_mysql [km_my_con.c:109]: db_mysql_new_connection(): driver 
error: Can't connect to local MySQL server through socket 
'/var/lib/mysql/mysql.sock' (2 "No such file or directory") 
0(28885) ERROR: <core> [db.c:322]: db_do_init2(): could not add connection to 
the pool 0(28885) ERROR: dialog [dlg_db_handler.c:147]: init_dlg_db(): unable 
to connect to the database 


Slava. 
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to