Author: Alexander Barkov
Email: [EMAIL PROTECTED]
Message:
> I don't really know what I'm doing. I am running the newest version of MySQL
>(stable) and stable version of mnoGoSearch. I get the following error when I try to
>use the search.cgi.
>
> #2002: Can't connect to local MySQL server through socket
>'/var/run/mysql/mysql.sock' (111)
>
> you can see for your self by going here
> http://mountainbiking.dhs.org/cgi-bin/search.cgi
The problem is that currently mnogosearch can connect only
using default unix socket when connecting to localhost.
You may specify non-default location in sql.c in this line:
if(!(mysql_real_connect(&(db->mysql),.....
one of arguments of this function is a unix socket:
MYSQL *mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char
*passwd, const char *db, unsigned int port, const char *unix_socket, unsigned int
client_flag)
Currently mnogosearch always passes NULL in unix_socket value.
You may fix yourself and pass required value.
Ask your dadabase administrator for the path to unix socket
wich must be used, if you don't know it yourself.
Hope this helps.
Reply: <http://www.mnogosearch.org/board/message.php?id=2787>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]