zoukankan      html  css  js  c++  java
  • 部署JForum 2.1.9安装时遇到的问题:报错数据库问题

    一.数据库版本
    mysql-5.6.11

    二.tomcat版本
    apache-tomcat-9.0.41

    三.报错信息

    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 ‘TYPE=InnoDB’ at line 1
    Query being executed when exception was thrown:
    CREATE TABLE jforum_banlist ( banlist_id INT NOT NULL auto_increment, user_id INT, banlist_ip varchar(15), banlist_email varchar(255), PRIMARY KEY (banlist_id), INDEX idx_user (user_id), INDEX (banlist_ip), INDEX (banlist_email)) TYPE=InnoDB
    CREATE TABLE jforum_banlist ( banlist_id INT NOT NULL auto_increment, user_id INT, banlist_ip varchar(15), banlist_email varchar(255), PRIMARY KEY (banlist_id), INDEX idx_user (user_id), INDEX (banlist_ip), INDEX (banlist_email)) TYPE=InnoDB
    

    四.解决方案

    1、找到mysql_db_struct.sql文件,用Notepad++打开

    2、将TYPE=InnoDB 全部替换为 ENGINE=InnoDB,Notepad可以批量替换,步骤如下。

    3、回到JForum安装网页,点击“修改状态”,继续安装步骤。
    4、成功!

  • 相关阅读:
    Day4-装饰器
    Day3-递归函数、高阶函数、匿名函数
    Day3-函数及作用域
    Day2-字符编码转换
    Day2-文件操作
    Day2-列表、字符串、字典、集合
    Day1-模块初识
    JavaScript 笔试题
    从JavaScript 数组去重谈性能优化
    prototype
  • 原文地址:https://www.cnblogs.com/nonamelake/p/14372025.html
Copyright © 2011-2022 走看看