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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 24, 2001 12:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DEV] Bug #11079 Updated: Problem with old code to use > mysql > > > ID: 11079 > Updated by: swm > Reported By: [EMAIL PROTECTED] > 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] [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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]