Sounds like you don't have MySQL turned on in PHP. Check phpinfo(); to see if 
the module is listed in there. 


On Thu January 15 2004 2:42 pm, Georg Herland wrote:
> Hi
> I've got two servers, one (RH9) with PHP4 and mysql-server and one (RH7.3)
> running PHP4 and mysql client only.
> The problem is that I get the following errormessage from PHP when trying
> to open a db-link:
> PHP Fatal error:  Call to undefined function:  mysql_connect() in
> /data1/www/root/test.php on line 3...
> Running mysql client works fine, same as PHP in general.
> I have compared the two servers and cannot find any major differences in
> PHP configuration, in fact they are identical, and the rpm php-mysq -packet
> is in place too.
> Is this situation familiar to anyone of you?
> All help is appreciated!
> Georg Herland
> Bergen, Norway

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to