Closed harkor closed 5 years ago
The correct initialization
$db = new PDODb(['type' => 'mysql', 'host' => 'host', 'username' => 'username', 'password' => 'password', 'dbname'=> 'databaseName', 'port' => 3306, 'prefix' => 'my_', 'charset' => 'utf8' ]);
The error is for "dbname", in the README, it's 'db' =>
I lost 1 hour to find the problem ;)
Sorry for that :) Fixed, will be on packagist when next release is ready.
No problem, it's weird no body see this before me :)
Have a nice day
The correct initialization
$db = new PDODb(['type' => 'mysql', 'host' => 'host', 'username' => 'username', 'password' => 'password', 'dbname'=> 'databaseName', 'port' => 3306, 'prefix' => 'my_', 'charset' => 'utf8' ]);
The error is for "dbname", in the README, it's 'db' =>
I lost 1 hour to find the problem ;)