Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created November 30, 2013 06:51
Show Gist options
  • Save anytizer/7716152 to your computer and use it in GitHub Desktop.
Save anytizer/7716152 to your computer and use it in GitHub Desktop.
SQL to drop all triggers from your selected database
SELECT CONCAT('DROP TRIGGER `', trigger_name, '`;') FROM information_schema.triggers WHERE trigger_schema = 'DATABASE_NAME';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment