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.
By jtheeuwes on
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
Are you sure you have mysql
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.
mysql is available on the server
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.
it works now
It works now. The host administrator had to change some settings. Thanks for your help.
I just had the same issue on
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:
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.