php - PDOException “could not find driver” -
i have installed debian lenny apache, mysql, , php , receiving pdoexception could not find driver
.
this specific line of code referring to:
$dbh = new pdo('mysql:host=' . db_host . ';dbname=' . db_name, db_user, db_pass)
db_host
, db_name
, db_user
, , db_pass
constants have defined. works fine on production server (and on previous ubuntu server setup).
is php installation?
searching internet has not helped, experts-exchange , examples, no solutions.
you need have module called pdo_mysql. looking following in phpinfo(),
pdo_mysql pdo driver mysql, client library version => 5.1.44
Comments
Post a Comment