Home › Forums › Scripts › Enthusiast › Error executing query:
Tagged: enthusiast, mysql error
This topic contains 4 replies, has 3 voices, and was last updated by KCherie 1 year ago.
-
AuthorPosts
-
May 14, 2012 at 4:39 pm #14043
Hi! I’m not sure what I’m not doing right, or how to fix this.
Whenever I try to install Enthusiast I get this error:
Error executing query: 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=MyISAM AUTO_INCREMENT=1′ at line 1; CREATE TABLE
affiliates(affiliateidint(5) NOT NULL auto_increment,urlvarchar(254) NOT NULL default ”,titlevarchar(254) NOT NULL default ”,imagefilevarchar(254) default NULL,emailvarchar(255) NOT NULL default ”,addeddate default NULL,PRIMARY KEY (affiliateid)) TYPE=MyISAM AUTO_INCREMENT=1May 14, 2012 at 5:08 pm #15139New versions of MySQL don’t require the ‘TYPE=MyISAM’ bit that Enth puts in the install script.
To fix it, you’ll need to remove any half-created tables (if any) and then modify install.php as follows:
On lines 138, 151, 166, 198 and 246 (or around those lines depending on your editor), change this:
') TYPE=MyISAM AUTO_INCREMENT=1';To:
') AUTO_INCREMENT=1';On line 271, change this:
') TYPE=MyISAM';To:
')';That will fix the initial install. You will also need to modify a couple of other files so that creating new fanlistings does not cause the same problem. Open mod_owned.php and go to line 905. Change this:
") TYPE=MyISAM AUTO_INCREMENT=1";To:
") AUTO_INCREMENT=1";Then open mod_setup.php and go to line 278. Change this:
') TYPE=MyISAM;';To:
')';Save all the files and reupload. Everything should then work.
May 14, 2012 at 7:25 pm #15140Thanks for the response!!
It’s now saying:
Error executing query: 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=MyISAM AUTO_INCREMENT=2′ at line 1; CREATE TABLE
faaemailtemplate(templateidint(3) NOT NULL auto_increment,templatenamevarchar(255) NOT NULL default ”,subjectvarchar(255) NOT NULL default ”,contenttext NOT NULL,deletabletinyint(1) NOT NULL default ’1′,PRIMARY KEY (templateid)) TYPE=MyISAM AUTO_INCREMENT=2May 14, 2012 at 7:54 pm #15141remove TYPE=MyISAM
May 14, 2012 at 8:30 pm #15142Thank you, it worked!
-
AuthorPosts
You must be logged in to reply to this topic.



Recent Comments