#29729 [Bgs]: Can't connect to local MySQL
| From: | kil at systema dot ru | Date: | Wed, 18 Aug 2004 11:44:14 +0000 |
| Subject: | #29729 [Bgs]: Can't connect to local MySQL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64838@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
Bug Type: MySQL related
Operating System: Tru64 UNIX v 5.1A
PHP Version: 5.0.1
New Comment:
Have you test PHP-5.0.1 on Tru64 ?
Previous Comments:
------------------------------------------------------------------------
[2004-08-18 13:40:05] kil at systema dot ru
I compiled PHP-5.0.1 such as PHP-4.3.8
PHP-4.3.8 is working
PHP-5.0.1 no
I can send configuration files by E-mail
------------------------------------------------------------------------
[2004-08-18 13:27:54] derick@php.net
Believe me, you are doing something wrong compiling. (as we don't
bundle the mysql client anymore and the default installed one might
have different socket location compiled in). Please ask for suport
about this on the mailinglists.
------------------------------------------------------------------------
[2004-08-18 13:21:04] kil at systema dot ru
In PHP-4.x.x such problem is only in case compilation with POSIX
threads:
CC="cc -pthread"
CXX="cxx -pthread"
------------------------------------------------------------------------
[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