部署JForum 2.1.9安裝時遇到的問題:報錯數據庫問題

出錯詳情

在這裏插入圖片描述

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、成功!
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章