>
> [client]
> port=3309
> socket=/tmp/mysql.sock.shoja
>
> Now the problem is when I'm trying to run my cgi from command prompt there
> is no error and it connect successfully.
>
> But when I'm trying to run it through web browser I get this error
> message:
>
> Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
>
> and this is wondering because anyway my socket file is
> '/tmp/mysql.sock.shoja'
>

It is looking for /tmp/mysql.sock and the one that exists is
/tmp/mysql.sock.shoja

Two different files.. It can't find what it is looking for. Try:

safe_mysqld --socket=/tmp/mysql.sock

and it should work

I just had the same problem.

thanks,
shawn


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to