Question

PDO MySQL extension Failed

Posted September 18, 2021 106 views
MySQL

Hello,

I have “PDO MySQL extension Failed” when installing MailWizz as the requirement. Could you please point out where should I look to fit this? Thank you

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @jin1,

I’ve not dealt with MailWizz however, I’ve checked and as I thought, it’s using PHP. This means you need to install the PDO PHP extension on your droplet.

This should be easy, just SSH to your droplet:

ssh root@XXX.XXX.XXX.XXX

where XXX.XXX.XXX.XXX is your droplet’s IP address.

Once inside, execute the command php -v:

php -v

It will show you which version of PHP you have. Let’s assume it’s 7.4 for the example.

Now, you’ll need to install the extension. If yu are using Ubuntu, this will do the trick for you:

sudo apt get php74-pdo

If you are using CentOS, use this:

yum install php74-pdo

That’s it.

Now if you are using another PHP version not 7.4, just change it in the command. If its 7.2, your command will be php72-pdo.

Regards,
KFSys

  • Hello KFSys,

    Thank you for your reply.
    I am using Ubuntu,PHP 8.0.10
    After “sudo apt get php8.0” this show “Invalid operation get”

    Did I miss install something?

    Regards,
    Jin

  • Hey KFSys,

    Found it! “sudo apt install php8.0-mysql php8.0-gd”

    Thank you very much, if it not because of you I would not know where to look. Thank you a lot:)

    Regards,
    Jin

    • Hi @jin1,

      I’m very happy to see you’ve managed to resolve the issue with a little bit of help! This is what the community is for!

      Please share other questions you have in the community as well, let’s grow it even more