SAE连接Mysql显示Lost Connection

浏览:3568 发布日期:2014/04/23 分类:求助交流
thinkphp框架3.2,localhost测试通过,部署到sae后无法使用。最初怀疑是不是thinkphp3.2有些配置有问题,查遍资料似乎3.2版本直接部署就可以使用sae的mysql数据库。请教下面报错是个什么问题。。。(已初始化mysql服务)
Lost connection to MySQL server at 'reading initial communication packet', system error: 111错误位置
FILE: /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php  LINE: 55


TRACE
#0 /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(55): E('Lost connection...')
#1 /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db.class.php(207): Think\Db\Driver\Mysql->connect(Array, 0)
#2 /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db.class.php(163): Think\Db->multiConnect(false)
#3 /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(92): Think\Db->initConnect(false)
#4 /data1/www/htdocs/269/halcyonjew/2/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(211): Think\Db\Driver\Mysql->query('SHOW COLUMNS FR...')
最佳答案
评论() 相关
后面还有条评论,点击查看>>