aspose file tools*
The moose likes JForum and the fly likes Error installing JForum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Error installing JForum" Watch "Error installing JForum" New topic
Author

Error installing JForum

Lucky Lam
Greenhorn

Joined: Sep 03, 2013
Posts: 10

I'm trying to install Jforum and I got this error:
"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"
I'm newbie, please help........ It would be appreciated!
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31057
    
232

I take it you are using MySql from the error message. What version?

Can you try running one sql statement at the mysql command line to see what error you get?
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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Lucky Lam
Greenhorn

Joined: Sep 03, 2013
Posts: 10

Thanks for your concern... I'm using Server version: 5.5.32 - MySQL Community Server (GPL)
Libor Jelinek
Greenhorn

Joined: Jun 08, 2011
Posts: 6

Before you go to http://<something>/jforum/install.jsp open <tomcat>/webapps/jforum/WEB-INF/config/database/mysql/mysql_db_struct.sql script which is executed by JForum installer and comment out all occurences of TYPE=InnoDB to /* TYPE=InnoDB */ (or delete this string).

Then re-run install.jsp.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error installing JForum