Missing Database Connection
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [1045] Access denied for user 'thebca_admin'@'localhost' (using password: YES)
Notice:
If you want to customize this error message, create app/View/Errors/missing_connection.ctp
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 260 → Mysql->connect()
));
}
if ($autoConnect) {
$this->connect();
}
- CORE/Cake/Model/ConnectionManager.php line 105 → DboSource->__construct(array)
'message' => 'Datasource is not found in Model/Datasource package.'
));
}
self::$_dataSources[$name] = new $class(self::$config->{$name});
self::$_dataSources[$name]->configKeyName = $name;
array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => false,
'encoding' => 'utf8'
)
- APP/Config/bootstrap.php line 121 → ConnectionManager::getDataSource(string)
Configure::write('EmailAddresses.envelope_sender', 'bounce@british-caving.org.uk');
App::uses('ConnectionManager', 'Model');
$dataSource = ConnectionManager::getDataSource('default');
Configure::write('DataSource.host', $dataSource->config['host']);
- CORE/Cake/Core/Configure.php line 92 → include(string)
);
self::_setErrorHandlers($error, $exception);
if (!include APP . 'Config' . DS . 'bootstrap.php') {
trigger_error(__d('cake_dev',
'/home/alchemy/gateway/app/Config/bootstrap.php'
- CORE/Cake/bootstrap.php line 175 → Configure::bootstrap(boolean)
App::$bootstrapping = true;
Configure::bootstrap(isset($boot) ? $boot : true);
- APP/webroot/index.php line 94 → include(string)
$failed = true;
}
} else {
if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
$failed = true;
'/home/alchemy/gateway/lib/Cake/bootstrap.php'
- ROOT/index.php line 41 → require(string)
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
}
require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
'/home/alchemy/gateway/app/webroot/index.php'