Re(2): Re(2): Re(2): [PHP-DB] Fatal Error using mysql_connect()

From: Date: Wed, 13 Mar 2002 15:22:18 +0000
Subject: Re(2): Re(2): Re(2): [PHP-DB] Fatal Error using mysql_connect()
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-17644@lists.php.net to get a copy of this message
php-general@gremlins.com.hk writes: > >I'm confused as to what exactly you have done here. You say "it compiled >without any errors using -with-mysql=/usr" > >But then your config from phpinfo() shows: > > --with-mysql=shared > > > >My advice is to do a clean installation: delete your current php src >directory, extract the php tarball into a new directory then run > > configure > make > stop webserver > make install > restart webserver > > > >-- >Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Jason, I just deleted the current php src directory and extracted a new downloaded version 4.06 from PHP.NET. I did the following: attempt 1.) ./configure --with-mysql=/usr/lib/mysql result 1.) configure: error: Cannot find header files under /usr/lib/mysql attempt 2.) ./configure --with-mysql=/usr/include/mysql result 2.) configure: error: Cannot find header files under /usr/include/mysql attempt 3.) ./configure --with-mysql=/usr result 3.) everything will compile find except that the configure command from phpinfo() reads: [SNIP] --with-mysql=shared' ' I am not sure where to point --with-mysql=[DIR]. How do I know I am pointing it to the correct directory? Regards, Adrian

« previous php.db (#17644) next »