MySQL Forums
Forum List  »  Triggers

Re: Execute shell script from trigger/procedure
Posted by: Ravi Teja Pattam
Date: April 10, 2015 06:05AM

Hi Peter,

I have written a trigger code which will run after update, but when im doing this im getting below error.

delimiter ;;
create trigger mytrigger1 after update on flag
for each row
begin
STOP SLAVE IO_THREAD;
end;
;;delimiter ;

The Flag table is getting locked and STOP SLAVE doesnt work giving error stating below

Error 'Can't execute the given command because you have active locked tables or an active transaction' on query. Default database: 'test1'. Query: 'update flag set flag_value='1' where flag_value='0''



Regrds,
Ravi

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Execute shell script from trigger/procedure
2668
April 10, 2015 06:05AM


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.