Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find all the db triggers in MySQL?

I created a trigger using SQL, how can I see the trigger using MySQL in phpMyadmin?

like image 522
Tattat Avatar asked Mar 24 '11 14:03

Tattat


People also ask

How can we view all the triggers currently in the database?

The MySQL SHOW TRIGGERS statement displays all the defined triggers in database tables. The command helps provide details for existing triggers, including the name, event timing, and other details.

How do I find a list of triggers in SQL Server?

To view database level triggers, Login to the server using SQL Server management studio and navigate to the database. Expand the database and navigate to Programmability -> Database Triggers. To view triggers at the server level, Login to Server using SSMS and navigate to Server Objects and then Triggers folder.

Where are triggers in MySQL workbench?

The Triggers subtab opens a workspace that enables you to create new triggers or edit existing triggers. All triggers are organized within a tree structure by section, such as BEFORE INSERT and AFTER INSERT.


2 Answers

Click on the 'SQL' tab and enter this query:

SHOW TRIGGERS
like image 153
Eugene Yarmash Avatar answered Sep 25 '22 08:09

Eugene Yarmash


select * from information_schema.triggers where trigger_schema = 'your_db'
like image 45
Nicola Cossu Avatar answered Sep 24 '22 08:09

Nicola Cossu