When installing the latest Drupal 7.x-dev I am told that:

Your PHP configuration only supports the SQLite database type so it has been automatically selected.

This is not the case as Drupal 6.10 installs with mysql perfectly.

Using:

WAMP 1.7.4 which runs:

Apache/2.2.6 (Win32)
PHP/5.2.5
mysql/5.0.45

Comments

damien tournoud’s picture

Category: bug » support

You will need to enable the PDO and PDO_MySQL PHP extensions.

asd123asd5’s picture

thank-you, sorry for the noob bug report!

dawehner’s picture

Status: Active » Closed (fixed)

so this can be marked as closed

jwilson3’s picture

I also hit this error. Wouldn't it be more prudent to point users to documentation instead of a cryptic message about PHP not being configured correctly, where in the past it has worked just fine. I'm no noob to Drupal per-se, but I have a feeling a lot of people with d5 or d6 experience upping to d7 will hit this exact issue.

elgandoz’s picture

You're right! That's why I am here! I noticed that this extension is not enabled by default on Windows... anyway why D6 can "see" mysql, while d7 not? It should be useful an error like "You must have pdo_mysql enabled [link to guide]"...
How to report this (I never did it and I would be happy to help :) )?

David_Rothstein’s picture

Depending on how the discussion in #946480: Installer Indicates My PHP Installation Only Supports SQLite when runnung MAMP goes (the most recent issue by people experiencing this problem) maybe we can try to add some extra help text via that issue.

It does seem like it wouldn't be that hard to do a check for the existence of functions like mysql_connect() and pg_connect() - as was done in Drupal 6 - and if those functions exist and the corresponding PDO driver isn't available, put a special note about it on the installation page.

kyle.vh’s picture

I have this error (MAMP 2.0, PHP 5.3.6, OSX 10.6.8). When I nav to applications/MAMP/bin/php/php5.3.6/conf/php.ini I can see the following lines:

extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so

Is there something missing?