Re: MySQL support compiled in, but functions not recognized

From: Date: Tue, 14 Nov 2000 16:49:57 +0000
Subject: Re: MySQL support compiled in, but functions not recognized
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4430@lists.php.net to get a copy of this message
> Hello Everyone- > > I recently installed PHP 4.0.3p|1 (the latest version) onto my Linux > machine, running Apache. I > compiled PHP with MySQL support (--with-mysql). However, when I try to use > the mysql_connect() > function, I get a "Fatal error" message saying that I am using an > unrecognized or undefined > function. > > The PHP compile process seemed to go fine- I have re-compiled it from > scratch a few times now. > Nothing seems to work. I tried re-compiling with the explicit path to > MySQL- when I did that, the compile > crashed about halfway through, saying it could not find the necessary MySQL > header files. That > makes me think I am doing something wrong. My MySQL daemon is running > fine, however, as is Apache. > Could I be forgetting a conf file modification or the like that would cause > PHP to not recognize the > MySQL functions? Note that this isn't a DB connection problem: PHP isn't > recognizing the mysql_connect() > function at all. > Hello, if PHP complains about some missing headers for MySQL there is a lot of chances that these headers are not installed, or you didn't provide the right path to it. Supposing you're under RedHat or something similar, try 'rpm -qa |grep mysql' . If you don't see MySQL-devel-xxx.rpm package install it. Then run configure again.It must work If it doesn't the path you provided isn't the right, you'll have to locate the file mysql.h bye.

« previous php.db (#4430) next »