<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Brett, <br>
<br>
Believe it or not, but this happened to my too, several times.<br>
<br>
IMHO, the proper approach will be have an empty db_url for the
modules, so that you may get a warning or so when trying to use a
module without explicitly setting the db_url.....<br>
<br>
Default, hidden params may be dangerous here....<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/08/2011 05:56 PM, Brett Nemeroff wrote:
<blockquote
cite="mid:BANLkTikXtWoEOfUgVNYctyUv0b-Ew5-3gw@mail.gmail.com"
type="cite">Hello All,
<div>I just ran into an issue that I think others might also run
into. </div>
<div><br>
</div>
<div>So I just added dialog module to an existing configuration
that already had a few db_urls specified for other modules. I
forgot to add the db_url for the dialog module. Because of this,
the dialog module (without warning) added it's own db_url. Of
course, the default db_url didn't work and I got an access
denied error in my logs.</div>
<div><br>
</div>
<div>This took me a good 10 minutes to track down. I couldn't
figure out why it wasn't logging in. to make matters worse, I'm
using the username 'opensips' so the log just looks like I must
have mistyped something:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Apr 8 10:41:19 [16494] ERROR:db_mysql:db_mysql_connect:
driver error(1045): Access denied for user
'opensips'@'localhost' (using password: YES)</div>
</div>
<div><br>
</div>
<div>I really think that if a module is going to init with a
default db_url, that it should probably have a WARNING in the
logs. something like:</div>
<div>
<meta charset="utf-8">
Apr 8 XX:XX:XX [XXXX] WARNING:db_mysql:Using default db_url for
module 'dialog'. You might want to change this</div>
<div><br>
</div>
<div>If I had seen that, I'd know that I needed to set the db_url
for the dialog module.. I'm pretty sure this came up sometime
before..</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Brett</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
</body>
</html>