A local Drupal system is required for me to do the debugging work. I installed Apache, PHP with mySql and mySQLi extension and also MySQL5.1 on my local computer, and while accessing the Drupal installation page, i had encountered the following error.


In your ./sites/default/settings.php file you have configured Drupal to use a mysql server, however your PHP installation currently does not support this database type.

drupal

Solution

1) Check the php.ini settings, make sure mySQL extensions are installed

[PHP_MYSQL]
extension=php_mysql.dll
[PHP_MYSQLI]
extension=php_mysqli.dll

2) Make sure the libmysql.dll exists in PHP installation folder

3) Make sure PHP installation folder exists in Windows system PATH.
– In Windows environment variable, set the PHP folder in PATH variable. (Restart is required)

Reference

http://www.php.net/manual/en/mysql.installation.php

This article was posted in Web Development category.