Click to See Complete Forum and Search --> : mysql_connect error - help!!


Ted Haller
05-15-2003, 04:31 AM
Hi,

I developed a web site on W98 which has now been installed onto a linux redhat box.

When an attempt is made to connect to the mysql database:

$connect = mysql_connect("","")
or die("Cannot connect to db");

the following error is generated:
Fatal error: Call to undefined function: mysql_connect()
...

Any ideas what the problem could be? I'm assured that PHP is running on the redhat box and that the database has been created.

Any ideas would be most appreciated.

Cheers

bad76
05-15-2003, 05:19 AM
Hi,
try with more param:

mysql_connect("localhost","","");

or better

mysql_connect("localhost","anyuser","anypwd");

Else make a file php with just <? phpinfo() ?>, load it, and look if mysql extension appear in list...

see you