Drupal: PHP MySQL support not enabled

Setting up a Drupal installation on my laptop to make it easier to develop themes offline i encountered the following error:

PHP MySQL support not enabled.

We were unable to use the MySQL database because the MySQL extension for PHP is not installed. Check your PHP.ini to see how you can enable it. For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

it took some time to get an answer but it was a very simple solution, after studying the c:\php.ini file i found the extension_dir directive was not set for the standard installation.

changing it to "C:\php\ext" which fixed the problem. It seems a little strange that it's not preconfigred for the standard installation.
PS my installation was on:
Apache 2.0.58
PHP5
drupal 4.73.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options