Page 1 of 1

mySQL & PHP Directory issues?

Posted: Fri Apr 07, 2006 12:28 pm
by abrusky
I recently installed PHP5 and MYSQL5 on a server but phpMyAdmin is displaying

"Cannot load mysql extension. Please check your PHP configuration."

I did as instructucted by php.net (shown below) but have had no success. Any Ideas
"On Windows NT, 2000, XP and 2003:


Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003)

Go to the Advanced tab

Click on the 'Environment Variables' button

Look into the 'System Variables' pane

Find the Path entry (you may need to scroll to find it)

Double click on the Path entry

Enter your PHP directory ant the end, including ';' before (e.g. ;C:\php)

Press OK and restart your computer "

Posted: Fri Apr 07, 2006 2:21 pm
by RobertGonzalez
The "mysql extension" this is talking about is the PHP mysql extension, which is not used in PHP5. PHP5 uses teh mysqli extension. But phpMyAdmin, to keep backward compatibility, codes their app using the mysql family of functions. So I think you need to uncomment the mysql extensions in your php.ini file to allow PHP5 to use the mysql family of functions to get phpMyAdmin to work.