Hi, read first this:

> The default is still /tmp/mysql.sock.
> But if you have mysql.sock somewhere else in your
> system, it will be detected instead.
>
> --Jani


Nop, check this URL:
http://pepe-lopez.com/mysqltest.php

You'll get

Warning: Can't connect to local MySQL server through socket
'/var/tmp/mysql.sock' (2) in
/usr/local/etc/httpd/htdocs/pepe-lopez/mysqltest.php on line 2

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/tmp/mysql.sock' (2) in
/usr/local/etc/httpd/htdocs/pepe-lopez/mysqltest.php on line 2


There's no php.ini, so, the default doesn't work!!!!!!!
It's compiled as CGI. I updated it from 4.0.5 which worked fine.

If I configure php.ini, the error
: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock'
(-1)
appears.


Have a nice day,
Lopez



> ID: 11674
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Closed
> Bug Type: MySQL related
> Operating system:
> PHP Version: 4.0.6
> Assigned To:
> Comments:
>
>
>
> Previous Comments:
> --------------------------------------------------------------------------
-
>
> [2001-06-25 14:33:25] [EMAIL PROTECTED]
> OK, I compile 4.0.6 (runs as CGI), and copy it to my cgi-bin (where 4.0.5
is/was located (running)).
> Then, PHP can't connect to mysql.sock in /tmp/var
>
> - in 4.0.5 the default *SEEMS* /tmp, however, in 4.0.5 the default works,
in 4.0.6 NOT.
>
> When I set up the php.ini (.ini-dist or optimized, it's the same thing!)
with mysql.default.socket = /tmp/mysql.sock
>
> the same error (warning) is displaying, but this time with
> mysql.sock '-1'.
>
> OK, I delete the php.ini, and 4.0.5 works without any probs, when I copy
4.0.6, -> can't connect to mysql.sock /tmp/var
>
> so...?
>
>
> regards,
> Lopez
>
> --------------------------------------------------------------------------
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=11674&edit=2
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to