thinkcmf5 使用 think命令报错


  [PDOException]
  SQLSTATE[HY000] [2002] ????Ŀ???????????ܾ????޷????ӡ?



Exception trace:
 () at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Connection.php:295
 PDO->__construct() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Connection.php:295
 think\db\Connection->connect() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Connection.php:1006
 think\db\Connection->initConnect() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Connection.php:348
 think\db\Connection->query() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\connector\Mysql.php:65
 think\db\connector\Mysql->getFields() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Query.php:1883
 think\db\Query->getTableInfo() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Query.php:1931
 think\db\Query->getFieldsType() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Query.php:1937
 think\db\Query->getFieldsBind() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Builder.php:266
 think\db\Builder->buildWhere() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Builder.php:236
 think\db\Builder->parseWhere() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Builder.php:715
 think\db\Builder->select() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Query.php:2415
 think\db\Query->getPdo() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\db\Query.php:483
 think\db\Query->column() at G:\develop1\iqiyi\simplewind\cmf\behavior\InitHookBehavior.php:31
 cmf\behavior\InitHookBehavior->run() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\Hook.php:137
 think\Hook::exec() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\Hook.php:95
 think\Hook::listen() at G:\develop1\iqiyi\simplewind\thinkphp\library\think\App.php:223
 think\App::initCommon() at G:\develop1\iqiyi\simplewind\thinkphp\console.php:19
 require() at G:\develop1\iqiyi\think:34

打赏

评论

暂时关闭,稍后恢复~
文档请看10遍以上!有问题可加QQ群!
发表话题

源素材推荐

提问必知

0.话题发布后没及时显示,请联系官方QQ群管理;
1.话题支持代码,qq截屏直接粘贴,和QQ群一样;
2.问题描述清,比如服务器版本,程序版本;
3.能上代码,就不用文字;
4.把问题发到话题后再发QQ群;
5.如果感觉回复者解答的不错,可以发红包!
6.多帮助别人也是对自己的锻炼!
7.付费讨论中只有提问者和付费用户才可以查看回复

积分规则

1.评论积分+1;每天最多10次奖励
2.发布话题积分+1;每天最多5次奖励
3.垃圾评论积分-500;
4.黄色,暴力,违反我国法律评论直接封号


ThinkCMF 8.0.0发布啦!祝大家节日快乐! 立即体验!