Sir Gabriiel
New Member
- Joined
- Mar 24, 2012
- Messages
- 88
- Reaction score
- 2
When I was running the command in PhPMyAdmin:
TRUNCATE `killers`
Error:
#1701 - Cannot truncate a table referenced in a foreign key constraint (`otserv`.`environment_killers`, CONSTRAINT `environment_killers_ibfk_1` FOREIGN KEY (`kill_id`) REFERENCES `otserv`.`killers` (`id`))
And when I was running the command:
TRUNCATE `player_deaths`
Error:
#1701 - Cannot truncate a table referenced in a foreign key constraint (`otserv`.`killers`, CONSTRAINT `killers_ibfk_1` FOREIGN KEY (`death_id`) REFERENCES `otserv`.`player_deaths` (`id`))
The command TRUNCATE `environment_killers` has been executed and not functioned
How do I fix?
TRUNCATE `killers`
Error:
#1701 - Cannot truncate a table referenced in a foreign key constraint (`otserv`.`environment_killers`, CONSTRAINT `environment_killers_ibfk_1` FOREIGN KEY (`kill_id`) REFERENCES `otserv`.`killers` (`id`))
And when I was running the command:
TRUNCATE `player_deaths`
Error:
#1701 - Cannot truncate a table referenced in a foreign key constraint (`otserv`.`killers`, CONSTRAINT `killers_ibfk_1` FOREIGN KEY (`death_id`) REFERENCES `otserv`.`player_deaths` (`id`))
The command TRUNCATE `environment_killers` has been executed and not functioned
How do I fix?
Last edited: