开发者

CakePHP question: Can't connect to database, what can be the reason?

开发者 https://www.devze.com 2023-04-05 04:09 出处:网络
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

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'

0

精彩评论

暂无评论...
验证码 换一张
取 消