On Mon, 20 Aug 2001, Bruce Campbell wrote:

> On Tue, 7 Aug 2001, Alexander Barkov wrote:
> 
> > > #2002: Can't connect to local MySQL server through socket 
>'/var/run/mysql/mysql.sock' (111) 
> > 

>       DBAddr mysql://username:[EMAIL PROTECTED]/mnogosearch/

[snip various diagnostics]

> Is it something that I've said incorrectly in the config files?

Ok, now I feel like the fool.  The above is correct.

The above line should be in the '<!--variables' ... '-->' section.  Note
that mnogosearch does care about spaces, and if you should happen to have:

        '<!-- variables'    (Note the space character).

None of your nifty variable definitions will be accepted, and you will end
up attempting to diagnose a problem with your local mysql server.

So,a proposed addition for the FAQ:

        Q: Why do I get '#2002: Can't connect to local MySQL server
        through socket '/var/run/mysql/mysql.sock' (111)' or similar
        returned by search.cgi when I've defined DBAddr (in search.htm) to
        refer to a different host?

        A: Mnogosearch is attempting to connect to the mysql server
        running on the local machine.  This may mean that Mnogosearch is
        not seeing your definition of DBAddr in search.htm.  Check that
        you have defined 'DBAddr' as per the search.htm-dist example, and
        that it is within the actual '<!--variables' block.  Note that a
        space between '<!--' and 'variables' will also cause problems.

Regards,

-- 
  Bruce Campbell <[EMAIL PROTECTED]>                +61-7-3367-0490
                      Systems Administrator                          APNIC

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to