Re: php install problem?

From: Date: Fri, 16 Nov 2001 19:08:17 +0000
Subject: Re: php install problem?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-4999@lists.php.net to get a copy of this message
Thanks to all the e-mails regarding this. Looks like RH7.2 (possibly other version as well) put the mysql.sock file in /var/lib/mysql rather than /tmp/ You can edit your php.ini file to look for the mysql.sock file elsewhere. Again thanks to all!! CD Chris Dorr wrote:
I've just installed, manually, php 4.0.5 and apache 1.3.22 on a RH 7.2 box. Php does work fine, however it is not able to access the mysql stuff that I installed. I first was using the PEAR modules and thought something was wrong with PEAR, but thought I'd better try the regular mysql_connect stuff. So I did and get an error. Ideas? Mysql was installed using RPM packages. Installed the same version of server, client and devel. I've got a username and password in the mysql database that I know works. Here's the error I'm getting. Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/httpd/htdocs/include/db.inc on line 3 Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/htdocs/include/db.inc on line 4 ERROR Thanks in advance. CD


« previous php.install (#4999) next »