Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Cannot load mysql extension. Please check your PHP configuratio

Status
Not open for further replies.

gnubie

Programmer
Apr 16, 2002
103
US
On WinXP(SP3) I installed php, runs ok.

Then installed MySQL. Installed and started ok.

When I do I get
phpmyAdmin Error: Cannot load mysql extension. Please check your PHP configuration.

php_mysql.dll IS present in php ext folder.
php.ini: extension_dir = "./" (seems right)

Suggestions? How to troubleshoot?
 
quick fix - put the php_mysql.dll file in c:/windows/system32
 
Also added:
extension=mysql.dll

Some more questions come to mind:

1) Where is the phpmyadmin error log file? Couldn't find it. Nothing in the Apache error log.
2) Is there a way to learn where phpmyadmin was looking for the extension?
3) Any other related configuration parameter (besides extension_dir)?
 
phpmyadmin is just a set of php scripts. it is configured in config.inc.php.
it does not look for any extensions. that is php's job.

php looks for extensions where it is told and also along the path environmental variable. php logging is set up from within php.ini.

you sound unexperienced in php matters. perhaps it would be easier to use a WAMP installer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top