Thanks Bruce - but the whole point I am trying to accomplish is that I
don't want to use Realtime and don't want asterisk to try to establish
the connection.  Was just chatting in IRC about this and it seems
that Realtime may not be able to be truly disabled (not sure how
accurate that is, but that was what I was told).  Basically I just
want to have asterisk load without those 2 errors popping up on the
console and in the logs.<br><br><div><span class="gmail_quote">On 11/21/05, <b class="gmail_sendername">Bruce Ferrell</b> &lt;<a href="mailto:bferrell@baywinds.org">bferrell@baywinds.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Check the mysql logs.&nbsp;&nbsp;I would suspect from this one of several things:<br><br>1.) the userid/password is incorrect.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;on the db host use the command lin e mysql client like so:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; mysql -h localhost -u &lt;asterisk user&gt; -p
<br><br>&nbsp;&nbsp;&nbsp;&nbsp; you'll be prompted for a password.&nbsp;&nbsp;If that works, go to the next<br>&nbsp;&nbsp;&nbsp;&nbsp; possible problem<br><br>2.) the userid doesn't have correct permissions to the DB<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from the mysql client, issues the use command to try to access the
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;realtime DB.&nbsp;&nbsp;if that works, go to the next possible problem.<br><br>3.) the userid is not permitted from the host the asterisk box is on<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as the mysql superuser look at mysql.user to see what hosts are
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;permitted access by the asterisk userid/password.&nbsp;&nbsp;If you have to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add a host, be sure to issue the flush priviledges command<br><br>Pedro wrote:<br>&gt; Yeah - tried that.&nbsp;&nbsp;Here are 2 lines I have in my 
modules.conf file:<br>&gt;<br>&gt; noload =&gt; pbx_realtime.so<br>&gt; noload =&gt; app_realtime.so<br>&gt;<br>&gt; For some reason, I still get the following in my logs even after a<br>&gt; restart of Asterisk.<br>&gt;<br>
&gt; Nov 21 13:17:08 ERROR[31192] res_config_mysql.c: MySQL RealTime: Failed<br>&gt; to connect database server&nbsp;&nbsp;on . Check debug for more info.<br>&gt; Nov 21 13:17:08 WARNING[31192] res_config_mysql.c: MySQL RealTime:<br>
&gt; Couldn't establish connection. Check debug.<br>&gt;<br>&gt; Any thoughts?<br>&gt;<br>&gt; - Pedro<br>&gt;<br>&gt; On 11/21/05, Alexander Lopez &lt;<a href="mailto:alex.lopez@opsys.com">alex.lopez@opsys.com</a><br>&gt; &lt;mailto:
<a href="mailto:alex.lopez@opsys.com">alex.lopez@opsys.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; It is a better practice to use a noload option in modules.conf. That<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; way if and when you upgrade you wont need to remove them again they
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; will just continue to not load....<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Alex<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------------------------------------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From: <a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>&gt;] On Behalf Of Pedro<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sent: Monday, November 21, 2005 12:11 PM
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To: Asterisk Users Mailing List - Non-Commercial Discussion<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject: [Asterisk-Users] How do you disable realtime?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Am I correct in assuming that if I am not running Realtime on my
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asterisk 1.2 server, the proper way to disable it is to remove<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the following 2 files:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/lib/asterisk/modules/pbx_realtime.so<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/lib/asterisk/modules/app_realtime.so
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am just testing out the default installation and am getting<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; these errors on the console:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nov 21 12:05:29 ERROR[30656] res_config_mysql.c: MySQL RealTime:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Failed to connect database server&nbsp;&nbsp;on . Check debug for more
info.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nov 21 12:05:29 WARNING[30656] res_config_mysql.c: MySQL<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RealTime: Couldn't establish connection. Check debug.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Any help will be appreciated.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Pedro
<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --Bandwidth and Colocation sponsored by <a href="http://Easynews.com">Easynews.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://Easynews.com">
http://Easynews.com</a>&gt; --<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Asterisk-Users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a> &lt;mailto:<a href="mailto:Asterisk-Users@lists.digium.com">
Asterisk-Users@lists.digium.com</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To UNSUBSCRIBE or update options visit:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation sponsored by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; Asterisk-Users mailing list<br>&gt; <a href="mailto:Asterisk-Users@lists.digium.com">
Asterisk-Users@lists.digium.com</a><br>&gt; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>_______________________________________________<br>--Bandwidth and Colocation sponsored by 
<a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br><a href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>