Preloader
Symfony
  • Estimated reading time: 1 Minute

Ubuntu Symfony PHP PDOException “could not find driver"

This error will be thrown when you don't have MySQL installed (correctly) and the driver pdo_mysql is not available.

Solution

As you don't have mysql, proceed to install it executing the following command on a new terminal:

sudo apt-get install php-mysql

Happy coding !

Share:
Carlos Delgado

Carlos Delgado

Senior Software Engineer at Software Medico. Interested in programming since he was 14 years old, Carlos is a self-taught programmer and founder and author of most of the articles at Our Code World.

Our Sponsors

Our blog is proudly supported by industry-leading sponsors.