php - PDOException “could not find driver” -


I have now installed Debian with Apache, MySQL, and PHP and I'm getting PDOException < / Code>.

This is a special code that is referring to:

$ dbh = new PDO ('mysql: host =' .db_host. '; Dbname =' .db_NAME , DB_USER, DB_PASS)

DB_Host , DB_NAME , DB_USER , and DB_PASS constants that I have defined. It works fine on the production server (and on my previous Ubuntu server setup)

Is this something with my PHP installation?

Internet search has not helped, I get all the expert exchange and examples, but there is no solution.

You need a module named pdo_mysql. Looking for the following in Phpinfo (),

pdo_mysql PDO driver for mysql; client library version = & gt; 5.1.44


Comments