打开实倒发现不能链接数据库
时间: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()
[ 错误信息 ]
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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28