Jump to content
  • 0

SQL Syntax errror (New Server)


Kasel

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  09/24/17
  • Last Seen:  

I'm not really sure where this should go.

I'm having this error while trying to EXECUTE main.sql with my new database schema "ragnarok".

16:23:18 `clan_id` int(11) unsigned NOT NULL auto_increment,   `name` varchar(24) NOT NULL DEFAULT '',   `master` varchar(24) NOT NULL DEFAULT '',   `mapname` varchar(24) NOT NULL DEFAULT '',   `max_member` smallint(6) unsigned NOT NULL DEFAULT '0',   PRIMARY KEY (`clan_id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 Error Code: 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 '`clan_id` int(11) unsigned NOT NULL auto_increment,   `name` varchar(24) NOT NUL' at line 1 0.000 sec
 

I cannot for the life of me figure this out and google has given me nothing. Any of you know what I should do?

 

EDIT: I just went into the code in the sql workbench and removed everything relating to clans.  Everything else executed perfectly fine.  It was only the clan data for some reason.  I suppose I could always add it to the database manually at some point.

Edited by Kasel
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  09/24/17
  • Last Seen:  

This can be considered solved.  I couldn't execute the clan data all at once with the main.sql, I had to do it separately.

All is right in the world now.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

What did you do to eliminate the error? I'm having the same error. 

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
Answer this question...

×   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...