Jump to content

Archived

This topic is now archived and is closed to further replies.

OhLordy

Problem with installed MySQL [RESOLVED]

Recommended Posts

I have MySQL installed on my Redhat 8 machine. I know it\'s working because I can use it from the command line.

However when I call it from PHP I get this error

 

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/tester.php on line 9

 

It sounds like I need to add something to PHP to make MySQL work but I installed them together with the web development package that came with Redhat 8.

 

Thanks in advance

Rob

Share this post


Link to post
Share on other sites

make a phpinfo() page and check your \"configure command\" at the top. does it have a --with-mysql= option?

Share this post


Link to post
Share on other sites

Thanks effigy

realised how silly my question was when I found a php-mysql rpm file. I\'ve got it sorted now.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.