搜索
系统检测到您的用户名不符合规范:

换了个空间还是老问题,求帮助!

浏览:4302 发布日期:2014年10月01日 分类:求助交流 关键字: 求助,交流,数据库连接
SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)
é"TMè ̄ ̄ä1⁄2ç1⁄2®
FILE: /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Db/Driver.class.php LINE: 105
TRACE
#0 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Db/Driver.class.php(105): E('SQLSTATE[HY000]...')
#1 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Db/Driver.class.php(1037): Think\Db\Driver->connect()
#2 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(50): Think\Db\Driver->initConnect(true)
#3 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Model.class.php(132): Think\Db\Driver\Mysql->getFields('yodt_ucenter_me...')
#4 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Model.class.php(120): Think\Model->flush()
#5 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Model.class.php(1431): Think\Model->_checkTableInfo()
#6 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, 'mysqli://root:r...', true)
#7 /home/zelljiup/domains/a/public_html/Application/User/Api/UserApi.class.php(19): Think\Model->__construct()
#8 /home/zelljiup/domains/a/public_html/Application/User/Api/Api.class.php(52): User\Api\UserApi->_init()
#9 /home/zelljiup/domains/a/public_html/Application/Admin/Controller/PublicController.class.php(31): User\Api\Api->__construct()
#10 [internal function]: Admin\Controller\PublicController->login('xxxx', '8xxxx8', 'ykpku')
#11 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/App.class.php(154): ReflectionMethod->invokeArgs(Object(Admin\Controller\PublicController), Array)
#12 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#13 /home/zelljiup/domains/a/public_html/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#14 /home/zelljiup/domains/aw/public_html/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#15 /home/zelljiup/domains/a/public_html/admin.php(39): require('/home/zelljiup/...')
#16 {main}

我不能控制Mysql配置文件,请问从代码方面能不能优化啊,因为我通过mysql_connect()测试连接时可以连接上的。
或者有其他办法,请帮帮我,赶集不尽!
最佳答案
评论() 相关
后面还有条评论,
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论 登录 | 立即注册
收藏
Neverdotwice
积分:322 等级:LV2
热点推荐
(追記) (追記ここまで)
最新更新

我们

合作

网站

信息

ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。

AltStyle によって変換されたページ (->オリジナル) /