You are viewing an old revision of this post, from July 8, 2020 @ 15:41:27. See below for differences between this version and the current revision.

MySQL – Remove all triggers by using the SQL queries

Sometimes you want to remove all existing triggers in your database so that you can create the new one.

You can execute the following SQL query to generate all necessary SQL queries to remove the triggers in your database.

SELECT Concat('DROP TRIGGER ', Trigger_Name, ';') FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA = 'your_database_name';

After that, you can export the result into the SQL file to execute those queries.

Hope it is useful for you 🙂

Revisions

  • July 8, 2020 @ 15:42:06 [Current Revision] by Sharing Solution
  • July 8, 2020 @ 15:41:27 by Sharing Solution
  • July 8, 2020 @ 15:40:55 by Sharing Solution

Revision Differences

There are no differences between the July 8, 2020 @ 15:41:27 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply