Learn how to solve the "PHP PDOException could not find driver" error in Ubuntu.

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


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 !

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.