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

  63 views   3 weeks ago CentOS

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.

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]