One day you decide to use WordPress, walk through the installation and *BOEM*, the next error appears in your web browser.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
OMG, what just happened ?
As the warning already suggests, the extension for MySQL couldn’t be found.
Don’t worry, this is quite easy to solve, assuming you have access to your “php.ini” file.
Important note: The extension directory is by default the “ext” folder in your PHP directory where also your php.ini file is stored.
Possibility 1 (enable extension):
- Open your php.ini file
- Search: extension=php_mysql.dll (probably prepended with an semicolon (;))
- Remove the semicolon
- Save your file and restart apache or IIS
This will solve your issue, unless PHP couldn’t find the directory where all the extensions are stored (.dll files). In this case the semicolon wasn’t there when you checked the extension, which means the extension is loadable with PHP. Or if you’re really unlucky, you have to check possibility 1 and 2. However, possibility 2 needs to be done when possibility 1 didn’t help.
Possibility 2 (point to extension directory):
- Open your php.ini file
- Search: extension_dir =
- Make sure the path to the extension directory is correct (example: “C:\server\php\ext”)
- Save your file and restart apache or IIS
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)

» Latest comments