分享
  • 收藏
  • 举报
    X
    安装时出错,发生SQL错误
    • 草鸣花飞 消费0元 2019-12-06 17:20 17:20
    1036
    1

    安装时发生下列错误,怎么处理:


    :)

    导入SQL失败,请检查install.sql的语句是否正确:ALTER TABLE `qb_memberdata` ADD INDEX ( `unionid` ) COMMENT '' think\exception\PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COMMENT ''' at line 1 in /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/db/Connection.php:456 Stack trace: #0 [internal function]: think\db\Connection->execute('ALTER TABLE `q...') #1 /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/Db.php(178): call_user_func_array(Array, Array) #2 /home/beeeefb5e5esele/wwwroot/application/install/controller/Error.php(169): think\Db::__callStatic('execute', Array) #3 /home/beeeefb5e5esele/wwwroot/application/install/controller/Error.php(32): app\install\controller\Error->step5() #4 [internal function]: app\install\controller\Error->index('5') #5 /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/App.php(348): ReflectionMethod->invokeArgs(Object(app\install\controller\Error), Array) #6 /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/App.php(612): think\App::invokeMethod(Array, Array) #7 /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/App.php(461): think\App::module(Array, Array, true) #8 /home/beeeefb5e5esele/wwwroot/thinkphp/library/think/App.php(139): think\App::exec(Array, Array) #9 /home/beeeefb5e5esele/wwwroot/thinkphp/start.php(19): think\App::run() #10 /home/beeeefb5e5esele/wwwroot/index.php(29): require('/home/beeeefb5e...') #11 {main}


    页面自动 跳转 等待时间: 0



    环境检查没有任何问题。


    6
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 1
    • selon 程序开发者 消费:1403.01元 2019-12-06 17:51 17:516楼
      数据库版本是哪个 5.6的呗
    0 赏钱 赏礼回复
    更多回复
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648