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、成功!

  • 相关阅读:
    HTTP协议详解
    如何编写出拥抱变化的代码
    Cookie ,Session
    Request 请求
    MySQL如何处理死锁
    如何优化冒泡排序
    java数据结构分析
    response响应
    Tomcat服务器
    HTTP协议
  • 原文地址:https://www.cnblogs.com/nonamelake/p/14372025.html
Copyright © 2011-2022 走看看