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 !

Become a more social person