#29729 [Bgs->Opn]: Can't connect to local MySQL

From: Date: Wed, 18 Aug 2004 11:21:12 +0000
Subject: #29729 [Bgs->Opn]: Can't connect to local MySQL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64833@lists.php.net to get a copy of this message
ID: 29729 User updated by: kil at systema dot ru Reported By: kil at systema dot ru -Status: Bogus +Status: Open Bug Type: MySQL related Operating System: Tru64 UNIX v 5.1A PHP Version: 5.0.1 New Comment: In PHP-4.x.x such problem is only in case compilation with POSIX threads: CC="cc -pthread" CXX="cxx -pthread" Previous Comments: ------------------------------------------------------------------------ [2004-08-18 13:16:54] derick@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. . ------------------------------------------------------------------------ [2004-08-18 13:02:09] kil at systema dot ru Description: ------------ CC=cc CXX=cxx CFLAGS="-arch host" CXXFLAGS="-arch host" PHP is Apache-2.0.50 shared module PHP-4.3.8 is OK. Reproduce code: --------------- <? mysql_connect("localhost", "user", "passwd"); ?> Expected result: ---------------- Web page Actual result: -------------- Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29729&edit=1

« previous php.bugs (#64833) next »