Re: Fatal error: Call to undefined function: mysql_connect()
| From: | David Robley | Date: | Sat, 17 Apr 2004 08:05:34 +0000 |
| Subject: | Re: Fatal error: Call to undefined function: mysql_connect() | ||
| References: | 1 | Groups: | php.db php.general |
| Request: | Send a blank email to php-general+get-183711@lists.php.net to get a copy of this message | ||
tsoheili@ipnetfusion.com (Tim) wrote in
news:20040416214343.82284.qmail@pb1.pair.com:
> Setup:
> 2 servers, one with PHP 4.1.2 and no MySQL installed, the other has
> MySQL and PHP 4.1.2
>
> Problem:
> I am attempting to connect to the MySQL server from the server without
> MySQL, but I get the error that shows in the subject.
>
> Fatal error: Call to undefined function: mysql_connect() in
> /folder/index.php on line 11
>
> I was told that maybe the extension for MySQL was not setup in PHP. I
> thought that maybe it was just because MySQL wasnt installed on the
> system I am working on, but it makes sense that I am not trying to
> access a database on the system I am working from, but trying to
> access one on a different server all together.
>
> What do you think?
I think the error message tells it all - there is no mysql support in the
php you are using. You'll need to recompile with php support, or load a
mysql extension library.
Cheers