RE: [PHP-DEV] Bug #11079 Updated: Problem with old code to use mysql
| From: | Mats Remman | Date: | Thu, 24 May 2001 10:52:21 +0000 |
| Subject: | RE: [PHP-DEV] Bug #11079 Updated: Problem with old code to use mysql | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-56594@lists.php.net to get a copy of this message | ||
The problem is 99% certain to be that php thinks you have mysql.sock in
/tmp,
while its in some other dir like /var/lib/mysql.sock ..
enter mysql console and type
show variables like 'socket';
and you will see where php.ini must point to be able to use sockets for
communicating with mysql.
mats
> -----Original Message-----
> From: swm@php.net [mailto:swm@php.net]
> Sent: Thursday, May 24, 2001 12:44 PM
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] Bug #11079 Updated: Problem with old code to use
> mysql
>
>
> ID: 11079
> Updated by: swm
> Reported By: ncosta@seist.com
> Old-Status: Open
> Status: Feedback
> Bug Type: MySQL related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> Are you sure the MySQL server is binding to domain sockets? ls -l
> /tmp/mysql.sock If mysqld is not running or is running with tcp
> connections only, then your default mysql_connect() will not work.
>
> Previous Comments:
> ------------------------------------------------------------------
> ---------
>
> [2001-05-24 06:15:32] ncosta@seist.com
> Hello... I'm use the Linux Mandrake 8.0 with mysql 3.23.32 and
> Apache 1.3.19. Recently I install the 4.0.5 version of php and I
> can't use my old code to acess mysql server. The mysql_connect
> function give me the error "Can't connect /tmp/mysql.sock (2)".
> This old code was working fine with 4.0.4pl1 version of php. Can
> you tell what is the problem? Best Regards. Nuno Costa.
>
> ------------------------------------------------------------------
> ---------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=11079&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net