connect to another mysql db
I am trying to use the db::loader to connect to another db with no luck.
Can some one explain to me how to create a second db connection using the new version of concrete?
$config = new \Doctrine\DBAL\Configuration();
$connectionParams = array(
'dbname' => 'DBname',
'user' => 'DBuser',
'password' => 'DBpass',
'host' => 'DBhost',
'driver' => 'pdo_mysql',);
$db = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
this created the connection now just feed it your queries, just make sure to follow dbal methods.