When installing drupal 7.26 it only gives me the option to use a SQlite database. the option to choose for a MYsql database is not shown. What did I do wrong?

Comments

Jaypan’s picture

Are you sure you have mysql installed on your system? If so, then you may have a corrupted version of Drupal - try getting a new version.

jtheeuwes’s picture

Yes, mysql is available: php 5.5.30. I tried to install a new version of drupal 7.26, without luck. I even tried version 7.25, no luck either.

jtheeuwes’s picture

It works now. The host administrator had to change some settings. Thanks for your help.

Jaypan’s picture

I just had the same issue on a new VPS I'm working on. The problem was that while PDO was installed, only the the PDO-sqllite driver was installed, not the PDO-mysql driver. To discover if this is your problem, create a new file in your root named phpinfo.php and put the following in it:

phpinfo();

Then access this file through your browser. You will be able to see the extensions that PHP has been enabled with there. Look for the following:

--with-pdo-mysql=shared

In my case, I only had:

--with-pdo-sqlite=shared

If you are missing the mysql (or whatever database you are using), then PHP needs to be recompiled with this option.