bcit-ci/CodeIgniter · error · RuntimeException
Unable to connect to the database.
Error message
Unable to connect to the database.
What it means
Error "Unable to connect to the database." thrown in bcit-ci/CodeIgniter.
Source
Thrown at system/database/DB_driver.php:434
{
$this->$key = $val;
}
// Try to connect
$this->conn_id = $this->db_connect($this->pconnect);
// If a connection is made break the foreach loop
if ($this->conn_id)
{
break;
}
}
}
// We still don't have a connection?
if ( ! $this->conn_id)
{
throw new RuntimeException('Unable to connect to the database.');
}
}
}
// --------------------------------------------------------------------
/**
* DB connect
*
* This is just a dummy method that all drivers will override.
*
* @return mixed
*/
public function db_connect()
{
return TRUE;
}
View on GitHub (pinned to 3658d731ea)
When it happens
Trigger: Thrown at system/database/DB_driver.php:434 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of bcit-ci/CodeIgniter@3658d731ea (2026-08-17).
Data as JSON: /api/errors/1e3a66eaade534c5.
Report an issue: GitHub.