Download & Extend

Consistent error - declares PHP doesn't support database type

Project:Drupal core
Version:6.9
Component:mysql database
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

You are missing the pdo_mysql extension.

#2

at least the error message could be something nicer ;) or point to some documentation.

tempting to put this against usability component.

#3

Status:active» closed (duplicate)

I 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.

#4

Version:7.x-dev» 6.9
Component:install system» mysql database

Hi,
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".

#5

kisor, you need the php-mysqli or php-mysql packages installed. You can use Synaptic to get them.

nobody click here