• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

blad podczas robienia gma

Retired

New Member
Joined
Apr 19, 2009
Messages
233
Reaction score
1
Gdy chce zrobic gma w bazie danych w gropu id zmienilem na 6 i wywalilo taki blad :
zapytanie SQL:

UPDATE `tfs`.`players` SET `group_id` = '6' WHERE `players`.`id` =8 LIMIT 1

MySQL zwrócił komunikat:
#1452 - Cannot add or update a child row: a foreign key constraint fails (`tfs/players`, CONSTRAINT `players_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`))

wie ktos jak to naprawic?
 
Zajrzyj do tabeli 'groupid' tam masz całą listę groupid (czyt. grupy osób np Gamemaster, itd.),
aczkolwiek musisz mieć jeszcze wpisać do tabeli
'accounts' (czy jak to sie nazywalo, już dawno nie używałem bazy Mysql) w groupid w tym przypadku cyfrę 6.

A jeśli nie to, to nie wiem.
 
Back
Top