Tuesday 29 July 2008 5:06:07 am
here is what i try to do
require_once "Database/src/factory.php";
require_once "Database/src/handler.php";
require_once "Database/src/instance.php";
require_once "Database/src/handlers/mysql.php";
$dbparams = array(
'type' => 'mysql',
'dbname' => 'd500',
'user' => 'root',
'host' => 'localhost',
'pass' => 'rootpw' );
$db = ezcDbFactory::create($dbparams);
and it throws an exception
"
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in T:\home\virtual\d500\Database\src\handler.php:88 Stack trace: #0 T:\home\virtual\d500\Database\src\handler.php(88): PDO->__construct('mysql:dbname=d5...', 'root', 'rootpw', NULL) #1 T:\home\virtual\d500\Database\src\handlers\mysql.php(111): ezcDbHandler->__construct(Array, 'mysql:dbname=d5...') #2 T:\home\virtual\d500\Database\src\factory.php(158): ezcDbHandlerMysql->__construct(Array) #3 T:\home\virtual\d500\index.php(18): ezcDbFactory::create(Array) #4 {main} thrown in T:\home\virtual\d500\Database\src\handler.php on line 88 " What do i do wrong?
|