• 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!

MySql problems

Drav

New Member
Joined
Nov 20, 2016
Messages
24
Reaction score
4
SQL query:


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

MySQL said:

#1215 - Cannot add foreign key constraint


What do I do?
 
I actualy just saw what i was doing wrong i clicked the MySql database instead of my OT's database LOL sorry im a nub ty for replying so quick though!
 
Back
Top