出錯詳情
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、成功!