Cannot load mysql extension error – Video Tutorial How To
September 15, 2007
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.)