[OpenSIPS-Users] ERROR:db_mysql:db_mysql_new_connection: driver error(2003)

Iñaki Baz Castillo ibc at aliax.net
Mon Jan 11 10:13:35 CET 2010


El Lunes, 11 de Enero de 2010, Alok Kushwaha escribió:
> this is the exact Error-
> 
> Jan 10 20:53:11 localhost /usr/local/sbin/opensips[2261]:
> ERROR:db_mysql:db_mysql_new_connection: driver error(2003): Can't connect
>  to MySQL server on '200.200.100.22' (4)
> Jan 10 20:53:11 localhost /usr/local/sbin/opensips[2261]:
> ERROR:core:db_do_init: could not add connection to the pool
> Jan 10 20:53:11 localhost /usr/local/sbin/opensips[2261]:
> ERROR:uri_db:uridb_db_init: unable to connect to the database
> Jan 10 20:53:11 localhost /usr/local/sbin/opensips[2261]:
> ERROR:core:init_mod_child: failed to initializing module uri_db, rank 20
> 
> Alok Kushwaha wrote:
> > Hi! All,
> >
> > My DB(mysql) server is on different machine. On starting the opensips
> > (/usr/local/sbin/opensips start ) it's throwing following error-
> >
> > ERROR:db_mysql:db_mysql_new_connection: driver error(2003): Can't connect
> > to
> > MySQL server on 'IP'
> >
> > but directly i am able to connect withmysql server. ( mysql -u root -h
> > 'IP' -p) .

Don't try with "mysql -u root" but with "mysql -u opensips" (or whatever user 
you have configured for OpenSIPS MySQL access.



-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Users mailing list