Why cannot I choose MySQL as database type in the installation page?
-
25-02-2021 - |
Question
I downloaded the Drupal archive and extracted it on the dedicated server. In cPanel, I created a MySQL database, but when I try to install Drupal, in the Database configuration page, I can only choose between PostgreSQL and SQLite as database type; I cannot choose MySQL.
Why did it happen? How do I fix it?
Solution
- Create a info.php file and upload it to your server :
php_info()
upload the file to your server is docroot then visit the URL http://youdomain.com/info.php
search for pdo_mysql and it should be enabled if it does not exist contact the server admin and tell him to enable the pdo_mysql (https://serverfault.com/questions/471282/how-enable-pdo-mysql) :
in your case I think you have just the pgsql and SQLite PDO enabled
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange