Skip to content

SQL Buddy

techstuff: mysql, apache, linux & worpdress …

  • Start
  • Tutorials
  • WordPress
  • MySQL
  • Apache
  • Linux
  • Shell
  • Contact
  • Support
  • Download SQL Buddy

Cannot truncate a table referenced in a foreign key constraint

June 6, 2019June 15, 2018 by karlos

Your solution is:

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table $table_name;
SET FOREIGN_KEY_CHECKS = 1;

No related posts.

Categories MySQL
Post navigation
brute-force Attacke: Einzelne IP’s in Firewall sperren
Dashboard Problem: “Danke für das Vertrauen in WordPress” entfernen
sqlbuddy in action

Impressum | Datenschutzerklärung

© 2021 SQL Buddy • Powered by GeneratePress
Diese Seite verwendet Cookies - Bitte lesen Sie unsere Datenschutzerklärung und erfahren Sie mehr ...