Click to See Complete Forum and Search --> : MySQL


stereo
05-03-2001, 03:04 PM
Hey people!

Okay, I have apache in place and PHP4. The only think that's being a git is MySQL. I can use raw db commands in dos etc and work with it like that, but I can't use PHP to connect to it. A connection failed error comes up all the time.

Has anyone got any suggestions?

Thank you,

Stereo

vincente
05-04-2001, 04:22 AM
WHat is the _exact_ error message?

Anon
05-04-2001, 05:32 AM
It says connection failed on the line where I put the mysql_connect(); function.

vincente
05-04-2001, 09:00 AM
So I repeat, what is the EXACT error message?

Anon
05-07-2001, 04:58 AM
Hi! I'm not stereo,but i have a problem something like this:

Fatal error: Call to undefined function: mysql_connect() in /home/irinad/html/example/index.php on line 8
What should i do?

vincente
05-07-2001, 05:13 AM
Your PHP doesn't suppport mysql.
You need to re-install PHP with mysql support.
On unix you can recompile with --with-mysql

Anon
04-22-2002, 01:29 AM
Saw this post, had the same problem, but that didn't help. What helped was installing php-mysql-4.0.6-7.1386.rpm from the RedHat 7.2 disk 2.

MikeG