try
{
\Database_Connection::instance()->connect(); // put your db connection name in instance($name) if you want a non-default connection group
}
catch (\Database_Exception $e)
{
// do something when connecting failed
}
It looks like you're new here. If you want to get involved, click one of these buttons!