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?

  • Check that your PHP has been installed with the proper MySQL extensions
    – Jaypan
    Commented Jun 8, 2020 at 17:47
  • @Jaypan which extension should be chosen? Commented Jun 8, 2020 at 17:52
  • pdo_mysql should be enough
    – Clive
    Commented Jun 8, 2020 at 18:13
  • @Clive pdo_mysql are not on my host but I found pdo_sqlsrv but when I checked checkbox it didn't change anything. See screenshot:i.piccy.info/i9/6e7ed1b4cfdc764a6563540d6e874159/1591640282/… Commented Jun 8, 2020 at 18:22
  • 1
    Try nd_pdo_mysql.
    – Les Lim
    Commented Jun 8, 2020 at 19:46

1 Answer 1

  1. Create a info.php file and upload it to your server :
  1. upload the file to your server is docroot then visit the URL http://youdomain.com/info.php

  2. 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) : enter image description here

in your case I think you have just the pgsql and SQLite PDO enabled

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.