I have xampp installed and want to get FuelPHP working. Everything seems to work fine, I scaffolded some stuff, that I want to migrate. But I get the error
Error - invalid data source name in COREPATH/classes/database/pdo/connection.php on line 94
My db.php looks like this:
return array(
'default' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => 'mysql:host=127.0.0.1;dbname=pfpg',
'username' => 'root',
'password' => '',
'persistent' => false,
'compress' => false,
),
),
);
I tried it without the 'persistent' and 'compress' before, didn't work. Database name is correct, username too. I also tried it with 'mysql:host=localhost'. I don't get what I did wrong...
If you need more information, ask away!
See Question&Answers more detail:os