阿星
- 阿星 2015-09-03 已签到连续签到1天,获得了5个金钱
- 阿星 2015-08-25 已签到连续签到1天,获得了5个金钱
- 阿星 2015-08-18 已签到连续签到2天,获得了10个金钱
第一步:看看数据库root是否存在密码
第二步:main.php引进main_local.php是否存在路径问题
第三步:main_local.phpreturn array( 'class'=> 'CDbConnection', 'connectionString' => 'mysql:host=127.0.0.1;dbname=database', 'emulatePrepare' => true, 'username' => '数据库用户名', 'password' => '数据库密码', 'charset' => 'utf8', 'tablePrefix'=> '表前缀', 'enableParamLogging' => true, //显示带参数的SQL );
请问下,报这个错怎么解决呢?SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
- 阿星 2015-08-17 已签到连续签到1天,获得了5个金钱
- 阿星 2015-08-08 已签到连续签到1天,获得了5个金钱