[OpenSIPS-Users] MySQL connection error
barsanl at yahoo.com
Fri Jun 10 15:58:40 CEST 2011
Very likely this is the problem, is the only one possibility to have an unset
user trying to connect to the db.
I notice that is a strange design to have some default DB connection params.
From: Nethra Chander <netchander at gmail.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Fri, June 10, 2011 3:54:32 PM
Subject: Re: [OpenSIPS-Users] MySQL connection error
Can you check the default parameter values for the modules that you load in the
opensips.cfg file and for which you have not explicitly configured modparams?
By default, the db_url parameter for the modules have the
So, in your case, the opensips at localhost and the password used might not be from
your opensips.cfg but rather coming from the default parameter values atleast
for one of the modules
I ran into similar issue and was able to resolve by explicitly configuring
db_url params for all the applicable modules.
On Fri, Jun 10, 2011 at 3:22 PM, Barsan Liviu <barsanl at yahoo.com> wrote:
>We re-installed from sources the OpenSIPs server to Debian and copied back to
>/etc/opensips the configuration files saved from the previous working OpenSIPs.
>When I start the server with opensips start then we receive the error in the
>Jun 10 18:03:12 P4302 opensips: ERROR:db_mysql:db_mysql_connect: driver
>error(1045): Access denied for user 'opensips'@'localhost' (using password: YES)
>Jun 10 18:03:12 P4302 opensips: ERROR:db_mysql:db_mysql_new_connection:
>initial connect failed
>Jun 10 18:03:12 P4302 opensips: ERROR:core:db_do_init: could not add
>connection to the pool
>For sure we do not have db_url in opensips.cfg or other files which contains
>Checked and from command line we can connect from mysql with the credentials we
>set in opensips.cfg.
>To be sure we put back the initial opensips.cfg comming with the sources,
>changed the db credentials to ours and still receive this error.
>Do you have any suggestion?
>Users mailing list
>Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users