[Fwd: Re: [PHP3] Re: [Fwd: [PHP3] [Fwd: Error: with MySQL Connect]]]

From: Date: Sun, 07 Nov 1999 22:57:34 +0000
Subject: [Fwd: Re: [PHP3] Re: [Fwd: [PHP3] [Fwd: Error: with MySQL Connect]]]
Groups: php.version4 
Request: Send a blank email to php-version4+get-5946@lists.php.net to get a copy of this message
-------- Original Message -------- Subject: Re: [PHP3] Re: [Fwd: [PHP3] [Fwd: Error: with MySQL Connect]] Date: Sun, 07 Nov 1999 14:55:00 -0800 From: Jack Lauman <jlauman@nwcascades.com> Organization: nwcascades.com To: Rasmus Lerdorf <rasmus@lerdorf.on.ca> References: <Pine.WNT.4.20.9911071450060.-1992995-100000@lithium.jetpen.com> Just to clarify that MySQL is working, here's the output of ps ax: PID TTY STAT TIME COMMAND 1 ? S 0:05 init 2 ? SW 0:00 [kflushd] 3 ? SW 0:00 [kupdate] 4 ? SW 0:00 [kpiod] 5 ? SW 0:00 [kswapd] 533 ? S 0:00 portmap 580 ? S 0:00 syslogd -m 0 591 ? S 0:01 klogd 605 ? S 0:00 /usr/sbin/atd 619 ? S 0:00 crond 633 ? S 0:00 inetd 647 ? SW 0:00 [snmpd] 661 ? S 0:12 named 675 ? SL 0:00 xntpd -A 680 ? SL 0:00 xntpd -A 690 ? S 0:00 lpd 706 ? S 0:00 /usr/sbin/amd -F /etc/amd.conf 708 ? SW 0:00 [rpciod] 709 ? SW 0:00 [lockd] 736 ? S 0:00 slapd 737 ? S 0:00 slapd 738 ? S 0:00 slapd 753 ttyS0 S 0:00 gpm -t MouseMan 789 ? S 0:00 /usr/bin/mcserv -d 830 ? S 0:00 smbd -D 842 ? S 0:00 nmbd -D 916 ? SW 0:00 [miniserv.pl] 920 tty1 SW 0:00 [login] 921 tty2 S 0:00 login -- root 924 tty3 SW 0:00 [login] 925 tty4 S 0:00 /sbin/mingetty tty4 926 tty5 S 0:00 /sbin/mingetty tty5 927 tty6 S 0:00 /sbin/mingetty tty6 928 tty1 S 0:01 -bash 1056 tty3 S 0:01 -bash 1126 tty3 S 0:00 sh /usr/bin/safe_mysqld --user=mysql --pid-file=/var/ 1143 tty3 SN 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql 1145 tty3 SN 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql 1146 tty3 SN 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql 6000 tty2 S 0:00 -bash 25338 ? S 0:10 /usr/sbin/httpsd -DSSL 25341 ? S 0:00 /usr/sbin/httpsd -DSSL 25342 ? S 2:56 /jdk117_v3/bin/../bin/i586/green_threads/java_ns org/ 25357 ? S 0:01 /usr/sbin/httpsd -DSSL 25358 ? S 0:00 /usr/sbin/httpsd -DSSL 25359 ? S 0:00 /usr/sbin/httpsd -DSSL 25360 ? S 0:00 /usr/sbin/httpsd -DSSL 25361 ? S 0:00 /usr/sbin/httpsd -DSSL 25362 ? S 0:00 /usr/sbin/httpsd -DSSL 25363 ? S 0:00 /usr/sbin/httpsd -DSSL 25364 ? S 0:00 /usr/sbin/httpsd -DSSL 25365 ? S 0:00 /usr/sbin/httpsd -DSSL 25366 ? S 0:00 /usr/sbin/httpsd -DSSL 4351 tty1 S 0:00 make 4490 tty1 S 0:00 make all-recursive 4491 tty1 S 0:00 /bin/sh -c set fnord w; amf=$2; dot_seen=no; target 4614 tty1 S 0:00 /bin/sh -c set fnord w; amf=$2; dot_seen=no; target 4615 tty1 S 0:00 make all 9753 tty3 S 0:00 mysql -uroot -pxxxxxxxx nwdbi 9754 tty3 SN 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql 10100 tty1 S 0:00 c++ -DUNDEF_THREADS_HACK -I./../include -I../include 10102 tty1 R 0:03 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1pl 10103 tty2 R 0:00 ps ax MySQL is compiled with the correct location for mysql.sock. As you can see from the above output, libmysqlclient believes that it is located at /var/lib/mysql/mysql.sock. PHP's .configure routine must be getting the location for MYSQL_UNIX_ADDR a/k/a --with-unix-socket-path=/var/lib/mysql/mysql.sock from another location. Please correct me if I'm wrong, but MySQL is working correctly, it's PHP that isn't. As before, I'm open to any suggestion that can help resolve this problem. Regards, Jack Lauman Rasmus Lerdorf wrote: > > > Tried that... doesn't work. > > Works fine if your permissions are such that your web server user id can > get to that file. > > But, your main problem is that you have compiled PHP against a version of > the MySQL client library that doesn't match your currently installed > MySQL. Or, you may also get that error if MySQL isn't even running. None > of this has anything to do with PHP. > > -Rasmus

« previous php.version4 (#5946) next »