CakePHP question: Can't connect to database, what can be the reason?
First line of the error =>
Access denied for user 'user_user'@'real.superdnssite.com' (using password: YES) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.p
database.php =>
var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'a.b.c.d',
'login' => 开发者_运维百科'user_user',
'password' => 'password',
'database' => 'database_name',
'prefix' => '',
);
var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'a.b.c.d',
'login' => 'user_user',
'password' => 'password',
'database' => 'database_name',
'prefix' => '',
);
What can be the reason for this ? Is it for wrong password or for no database or for ip address ?
Try to use :
'datasource' => 'Database/Mysql'
精彩评论