Jump to content

SQL error #1064


Guest Aznet1

Recommended Posts

My web host vanished so I'm trying to get my backup fully working, all but 2 of my sql tables loaded fine, I manually loaded the queries 1 at a time. The site is up and working fine as well but I'm missing those tables. Here's the errors, not sure how to remedy this, any help would be greatly appreciated.

**********************************************

SQL query:

CREATE TABLE CubeCart_Modules(

moduleId int( 11 ) NOT NULL AUTO_INCREMENT ,

module varchar( 10 ) NOT NULL default '',

folder varchar( 30 ) NOT NULL default '',

STATUS smallint( 1 ) NOT NULL default '0',

defaultint( 1 ) NOT NULL default '0',

KEY moduleId( moduleId )

) TYPE = MYISAM ;

MySQL said:

#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 'default int(1) NOT NULL default '0',

KEY moduleId (moduleId)

) TYPE=MyISAM' at line 6

**************************************************

SQL query:

CREATE TABLE CubeCart_admin_permissions(

permissionId int( 11 ) NOT NULL AUTO_INCREMENT ,

sectId int( 11 ) NOT NULL default '0',

adminId int( 11 ) NOT NULL default '0',

READ int( 11 ) NOT NULL default '0',

WRITE int( 11 ) NOT NULL default '0',

edit int( 11 ) NOT NULL default '0',

DELETE int( 11 ) NOT NULL default '0',

PRIMARY KEY ( permissionId )

) TYPE = MYISAM ;

MySQL said:

#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 'read int(11) NOT NULL default '0',

write int(11) NOT NULL default '0',

edi' at line 5

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...