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