Bug #11674 Updated: can#t connect on socket, still a problem
| From: | Pepe Lopez | Date: | Fri, 29 Jun 2001 13:00:33 +0000 |
| Subject: | Bug #11674 Updated: can#t connect on socket, still a problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-58398@lists.php.net to get a copy of this message | ||
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: lopez@pepe-lopez.com
> 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] lopez@pepe-lopez.com
> 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
>
>