Jump to content

Recommended Posts

Posted

Hey guys,

I have an issue with giving bans.

I cannot ban anyone from the game.

All what can I do by ban command is to kick.

So I've tried to give ban mannualy in database.

All what I get looks like

Executing:

INSERT INTO `realmd`.`account_banned` (`id`, `bandate`, `unbandate`, `bannedby`, `banreason`, `active`) VALUES ('24', '0', '0', 'admin', 'admin', '1');

Operation failed: There was an error while applying the SQL script to the database.

ERROR 1452: 1452: Cannot add or update a child row: a foreign key constraint fails (`realmd`.`account_banned`, CONSTRAINT `account_banned_ibfk_1` FOREIGN KEY (`id`) REFERENCES `account` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)

SQL Statement:

INSERT INTO `realmd`.`account_banned` (`id`, `bandate`, `unbandate`, `bannedby`, `banreason`, `active`) VALUES ('24', '0', '0', 'admin', 'admin', '1')

Looks like I have a problem with Foreign key, but dk how to fix this :/

And still cannot find the answer, why I cannot ban anyone, in the Internet.

Looking for fast help cause I'm in a litte mess right now :/

  • madmax locked this topic

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use