[previous exception] [object] (PDOException(code: 0): could not find driver

In this article, i will share with you how to resolve "[previous exception] [object] (PDOException(code: 0): could not find driver" issue in CentOs. just follow the steps and resolve this issue.

Install PDO extension

sudo yum install php-pdo_mysql

after install pdo_mysql then restart the httpd service by running the following command in your terminal.

sudo systemctl restart httpd.service

i hope you like this solutions.

Tags:

Was this article helpful?

0 out of 0 person found this article helpful.

Leave a comment

Or

No Comment