Question

PDO MySQL extension Failed

  • Posted on September 18, 2021
  • MySQL
  • jin1Asked by jin1

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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