• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[SQL] Import database - Error

Liley

New Member
Joined
Jul 21, 2015
Messages
8
Reaction score
0
When you import the base, it gives me an error:

SQL query:

-

MySQL returned: Documentation


#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 '-' at line 1
 
What are you using to import your database?

I recommend MySQL workbench as the best free software. If you want to pay Navicat is very very convenient and easy to use.
 
Last edited by a moderator:
If you have temaviewer, you can Private Message me the information. I will show you MySQL Workbench, it's a great program.
 
I don't wanna make another topic for another sql problem, so im gonna post it there

Code:
CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `limit` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  FOREIGN KEY (`id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


#1005 - Can't create table 'znote.znote_guild_wars' (errno: 150)
 
try this
Code:
CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
  `id` int NOT NULL AUTO_INCREMENT,
  `limit` int NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  FOREIGN KEY (`id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB;
 
Back
Top Bottom