I recently ran into the following error when trying to launch PhpMyAdmin from the WAMP icon tray menu:
phpMyAdmin – Error
Cannot load mysql extension. Please check your PHP configuration.
What does this mean?
In a nutshell, PHP cannot find the library (mysql.dll – on Windows) it needs to connect to MySQL.
How can you fix this?
- Use phpInfo() to find out what php.ini file PHP is using. It’s near the top.
- Go into your php.ini and enable the extension that loads the mysql.dll library.
- Set your Windows ‘Path’ to point to the directory where the mysql.dll is sitting.
- Restart Windows.
The solution (and more details) can be found in this video:
Tip: Try the full-screen mode for the video .. it’s pretty nice.
I hope you find this useful.
Stefan Mischook (All around nerd.)
This entry was posted on Saturday, September 15th, 2007 at 9:33 pm and is filed under Beginners PHP Articles. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.