Jump to content

PHP not recognizing MySQL installation


jotate

Recommended Posts

Basic LAMP set up (CentOS, Apache2, MySQL 4.1.2, PHP4).  It was set up by not me, so I'm struggling through config files trying to pin point why certain things aren't working.  Basically, PHP isn't recognizing the MySQL functions.  Looking at phpinfo(), there's very little mention of mySQL.  Configuration command has '--with-mysql=shared,/usr' and dbx shows MySQL is a supported database.

 

Not that I suspect this will make anything more clear, but just a simple test file yields:

 

Fatal error: Call to undefined function: mysql_connect() in test.php on line 6.

 

Any ideas where I should look?  Any links to detailed troubleshooting tutorials for setting up php/mySQL.  Most of what I've found either just start from the initial installation or offer simply "Now, you should be able to see that it works."  Not very helpful.  :-\

Link to comment
https://forums.phpfreaks.com/topic/70524-php-not-recognizing-mysql-installation/
Share on other sites

Archived

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

×
×
  • Create New...

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.