[Users] OpenSER attempting local mysql connection

Rick Richardson rick at eltopia.com
Thu Dec 1 07:40:22 CET 2005


I have openser.cgf pointing openser to use a remote database using this
line:
modparam("auth_db", "db_url", "mysql://serusr:mypass@192.168.0.54/ser")

Upon initializing the auth_db module it seems to be insisting on
connecting locally (which fails) I compiled all the modules for mysql5
using the devel libs from the mysql official redhat enterprise rpms. 
I can add/rem users to this remote database using openserctl. 

When I start openser I get this output:

 0(3076) WARNING: fix_socket_list: could not rev. resolve 192.168.0.52
 0(3076) WARNING: fix_socket_list: could not rev. resolve 192.168.0.52
Listening on
             udp: 127.0.0.1 [127.0.0.1]:5060
             udp: 192.168.0.52 [192.168.0.52]:5060
             tcp: 127.0.0.1 [127.0.0.1]:5060
             tcp: 192.168.0.52 [192.168.0.52]:5060
Aliases:
             tcp: localhost:5060
             tcp: localhost.localdomain:5060
             tcp: amnesiac:5060
             udp: localhost:5060
             udp: localhost.localdomain:5060
             udp: amnesiac:5060

stateless - initializing
0(0) Maxfwd module- initializing
textops - initializing
 0(0) AUTH module - initializing
 0(0) AUTH_DB module - initializing
 0(0) new_connection: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
 0(0) register_udomain(): Can not open database connection
 0(0) domain_fixup(): Error while registering domain
ERROR: error -1 while trying to fix configuration

any ideas?

Rick





More information about the sr-users mailing list