#21088 [Opn]: Pspell breaks connecting to mysql using localhost
| From: | mark at seventhcycle dot net | Date: | Thu, 19 Dec 2002 01:25:20 +0000 |
| Subject: | #21088 [Opn]: Pspell breaks connecting to mysql using localhost | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28004@lists.php.net to get a copy of this message | ||
ID: 21088
User updated by: mark@seventhcycle.net
Reported By: mark@seventhcycle.net
Status: Open
Bug Type: Pspell related
Operating System: Linux 2.4
PHP Version: 4.3.0RC3
New Comment:
// Where it says:
On the other hand if I change the line to:
mysql_connect("66.139.73.7", "root", "xxxxx");
The error message is:
// it should say:
On the other hand if I change the line to:
mysql_connect("66.139.73.7", "root", "xxxxx");
I can connect to the database successfully...
The error message when using "localhost" is:
// Sorry for the mixup
Previous Comments:
------------------------------------------------------------------------
[2002-12-18 19:22:26] mark@seventhcycle.net
Here is my configure line:
./configure --with-mysql=/usr/local/mysql \
--with-pspell \
--with-xml \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-track-vars \
--with-gd \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib
The perpetrating line is :
mysql_connect("localhost", "root", "xxxxx");
// this is NOT my server password
On the other hand if I change the line to:
mysql_connect("66.139.73.7", "root", "xxxxx");
The error message is:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to
local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in
/home/melwakil/web/QueryClass.php on line 9
After doing a make distclean and reinstalling php without with-pspell
on the command line, it connects fine.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21088&edit=1