开发者

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'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜