+ -
当前位置:首页 → 问答吧 → 打开实倒发现不能链接数据库

打开实倒发现不能链接数据库

时间:2011-09-28

来源:互联网

系统发生错误 错误位置: FILE: D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Db\Db.class.php LINE: 243
[ 错误信息 ]
Can't connect to MySQL server on 'localhost' (10061)
[ TRACE ]
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Db\Db.class.php (243) DbMysql->connect()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Db\Driver\DbMysql.class.php (110) Db->initConnect()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Db\Driver\DbMysql.class.php (262) DbMysql->query(SHOW COLUMNS FROM `think_form`)
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Core\Model.class.php (136) DbMysql->getFields(think_form)
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Core\Model.class.php (120) Model->flush()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\ThinkPHP\Lib\Think\Core\Model.class.php (98) Model->_checkTableInfo()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\Examples\Form\Runtime\~runtime.php (2) Model->__construct(Form)
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\Examples\Form\Lib\Action\IndexAction.class.php (5) M(Form)
[11-09-28 21:30:09] () IndexAction->index()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\Examples\Form\Runtime\~runtime.php (2) call_user_func(Array)
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\Examples\Form\Runtime\~runtime.php (2) App::exec()
[11-09-28 21:30:09] D:\ComsenzEXP\wwwroot\ThinkPHP2\Examples\Form\index.php (20) App::run()

作者: flash20   发布时间: 2011-09-28

首先 在配置文件里面修改数据库的连接信息 然后清空示例的Runtime缓存

作者: thinkphp   发布时间: 2011-09-29

热门下载

更多