:(

Access denied for user 'yifafoodcn'@'%' to database 'yifafoodcn'

错误位置

FILE: D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php  LINE: 55

TRACE

#0 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php(55): E('Access denied f...')
#1 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Db.class.php(166): Think\Db\Driver\Mysql->connect()
#2 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php(92): Think\Db->initConnect(false)
#3 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Db\Driver\Mysql.class.php(211): Think\Db\Driver\Mysql->query('SHOW COLUMNS FR...')
#4 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Model.class.php(130): Think\Db\Driver\Mysql->getFields('contact')
#5 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Model.class.php(118): Think\Model->flush()
#6 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Model.class.php(1286): Think\Model->_checkTableInfo()
#7 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Model.class.php(95): Think\Model->db(0, '', true)
#8 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Common\functions.php(531): Think\Model->__construct('contact', '', '')
#9 D:\wwwroot\yifafoodcn\wwwroot\application\Home\Controller\BaseController.class.php(9): M('contact')
#10 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Controller.class.php(41): Home\Controller\BaseController->_initialize()
#11 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Common\functions.php(590): Think\Controller->__construct()
#12 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\App.class.php(80): controller('Index', '')
#13 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\App.class.php(193): Think\App::exec()
#14 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#15 D:\wwwroot\yifafoodcn\wwwroot\library\ThinkPHP\ThinkPHP.php(96): Think\Think::start()
#16 D:\wwwroot\yifafoodcn\wwwroot\index.php(12): include_once('D:\\wwwroot\\yifa...')
#17 {main}