Jump to content

PHP not recognizing MySQL installation


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.