MySQL Forums
Forum List  »  Newbie

Re: disable trigger in master alone without propagating to slave
Posted by: Peter Brawley
Date: May 19, 2022 10:49AM

MySQL does not (yet?) support ALTER TRIGGER ... ENABLE | DISABLE.

You can create a stored procedure or function which sets & gets a declared variable as desired, and code triggers to call it.

Re replication & triggers, see https://dev.mysql.com/doc/refman/8.0/en/replication-features-triggers.html

Options: ReplyQuote


Subject
Written By
Posted
Re: disable trigger in master alone without propagating to slave
May 19, 2022 10:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.