Re: PHP, MySQL, * Mandrake 8.1
| From: | Fred | Date: | Sat, 01 Dec 2001 22:44:02 +0000 |
| Subject: | Re: PHP, MySQL, * Mandrake 8.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5156@lists.php.net to get a copy of this message | ||
I would venture to guess that mysql is installed as a binary distribution.
PHP needs the sources in order to compile with mysql support. Try
installing mysql from source or installing the source rpm.
Fred
Joe <none@nowhere.com> wrote in message
news:20011201221307.53186.qmail@pb1.pair.com...
> Hi All,
>
> I am trying to use MySQL from PHP. I get the error message: call
to
> undefined function: mysql_connect()
>
> Based on what I've read, I need to compile PHP with the
> --use-mysql=/path/to/mysql option. This was not enough information to get
> the compile to work. (I tried every directory that had *any* mysql files
in
> it.) So I ended up compiling just using --use-mysql. This seemed to work,
> php -v gives me 4.0.6. However, the error still exists: undefined
function:
> mysql_connect() (MySQL is definitely installed. I have used the client to
> build a small database which I can query against.)
>
> Could someone please give me a hand here?
>
> jce