Forums / Installing on a Windows Server / 1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

Started by chasel on 18 Aug 2012, 10:31 AM · Views: 4,093

Results 1 to 4 of 4
18 Aug 2012, 10:31 AM
#1
chasel avatar

chasel

New Zenner

Join Date:
Aug 2012
Posts:
1
Plugin Contributions:
0

1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

Hi,

got a problem with finish installation of the zencart engine 1.3.8.
I needed to downgrade the V.1.5 to 1.3.8. Installation preparation is without any problems.

Now i got the following errror message:

1064 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' at line 1
in:
[CREATE TABLE upgrade_exceptions ( upgrade_exception_id smallint(5) NOT NULL auto_increment, sql_file varchar(50) default NULL, reason varchar(200) default NULL, errordate datetime default '0001-01-01 00:00:00', sqlstatement text, PRIMARY KEY (upgrade_exception_id) ) TYPE=MyISAM;]

So i think that i only need to edit something in the mysql_zencart.sql. Also got the displayed error lines:

DROP TABLE IF EXISTS upgrade_exceptions;
CREATE TABLE upgrade_exceptions (
upgrade_exception_id smallint(5) NOT NULL auto_increment,
sql_file varchar(50) default NULL,
reason varchar(200) default NULL,
errordate datetime default '0001-01-01 00:00:00',
sqlstatement text,
PRIMARY KEY (upgrade_exception_id)
) TYPE=MyISAM;

Does anybody know how to complete this installation. What do i need to edit?

Thanks a lot

18 Aug 2012, 12:48 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,120
Plugin Contributions:
56

Re: 1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

Try changing *TYPE *to ENGINE.

18 Aug 2012, 3:59 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: 1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

I'm concerned that you are downgrading to 1.3.8:huh:
I can understand that one might have to downgrade to 1.3.9h due to a mod not working, but download to a version with known vulnerabilities?!?

Brings back memories of -- Illegal bounds interrupt STOP

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Aug 2012, 6:36 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 1064 Error in SQL Syntax - old v.1.3.8 on new MySQL

Right.

It's a bad idea to be downgrading to a version of Zen Cart that's designed for MUCH OLDER version of MySQL than what you're using on your server. And probably same with PHP.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.