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

ned help with finishing my SQl

Newrealots

New Member
Joined
Jul 22, 2012
Messages
9
Reaction score
0
i got all the way to the end and i got this problem wheni imported my SQl files...


SQL query:

DELIMITER | CREATE TRIGGER `ondelete_accounts` BEFORE DELETE ON `accounts` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `type` IN ( 3, 4 ) AND `value` = OLD.`id` ;

END |

MySQL said:

#1465 - Triggers can not be created on system tables


someone please help me
 
Remove

DELIMITER | CREATE TRIGGER `ondelete_accounts` BEFORE DELETE ON `accounts` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `type` NOT IN ( 1, 2 ) AND `value` = OLD.`id` ;


You will get a few more errors after that, remove those lines too
 
i'm makin the site for a friend he's hosting when he sent me copy of the ot the ban folder didn't send with it.. i downloaded everything... and done as the tutorial said. i got all the way to import the my sql file... and when i did it gave me that error i posted on top.
 
Back
Top