Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
install system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2009 at 03:54 UTC
Updated:
16 Jan 2012 at 04:18 UTC
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
Comment #1
damien tournoud commentedYou will need to enable the PDO and PDO_MySQL PHP extensions.
Comment #2
asd123asd5 commentedthank-you, sorry for the noob bug report!
Comment #3
dawehnerso this can be marked as closed
Comment #4
jwilson3I 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.
Comment #5
dave reidSee #299308: Installing Drupal by visiting index.php (rather than install.php) leads to a fatal error when PDO is not enabled
Comment #6
elgandoz commentedYou'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 :) )?
Comment #7
David_Rothstein commentedDepending 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.
Comment #8
kyle.vh commentedI 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?