Jump to content

PHP/MySQL connection problems


as5680

Recommended Posts

Hi,

 

I am having problems getting PHP to connect to MySQL on my local server.  I have PHP running fine and am able to login to MySQL through command line with no problems.

 

Today I tried to install phpmyadmin on my local machine to test some things before putting them online, and get the "Cannot load mysql extension. Please check your PHP configuration" error message.

 

I have searched various forums but all the fixes suggested don't seem to make a difference - it seems to me that no connection is being made at all.  I have checked in php.ini and the extension directory is set correctly, and I have removed the semi-colon before "extension=php_mysql.dll".

 

When I run a test PHP script to try connecting to MySQL I get nothing in my browser, not even an error message.

 

Not sure what else to try so any help would be greatly appreciated.

Link to comment
Share on other sites

extension_dir seems to be pointing to the right directory, certainly the directory where php_mysql.dll is.

 

I'm afraid I am still quite new to this and don't know exactly how to check for the extension in phpinfo, not sure where it would tell me.

 

Apache has certainly been restarted several times since I tried to configure php.ini.

Link to comment
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.