Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Notes:
- I'm using EasyPHP on WinXP - worked flawlessly for developing with D6
- changing database type (mysql,sqlite) doesn't help, but does change the error message - phpinfo() declares that they are both supported in my install of PHP
- When feeding a blank settings.php file the error message has a blank space where mysql is shown above
- somewhat unrelated: going to root directory (eg http://site.com/ ) doesn't redirect to install.php like it did in D6 (eg http://site.com/install.php ) - it throws plain text errors
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedYou are missing the pdo_mysql extension.
Comment #2
alexanderpas CreditAttribution: alexanderpas commentedat least the error message could be something nicer ;) or point to some documentation.
tempting to put this against usability component.
Comment #3
Dave ReidI can probably add a check that PDO::getAvailableDrivers() is not empty and make sure there is an available database driver in #299308: Installing Drupal by visiting index.php (rather than install.php) leads to a fatal error when PDO is not enabled. I'm going to mark this as a duplicate.
Comment #4
kisor CreditAttribution: kisor commentedHi,
I was installing drupal6.9 in my Linux Ubuntu system, I saw the version of mysql is MySQL 5.0.51a-3ubuntu5.4 using mysql admin. But I am getting the error "PHP installation currently does not support this database type".
Comment #5
Dave Reidkisor, you need the php-mysqli or php-mysql packages installed. You can use Synaptic to get them.