change Event Scheduler status in mysql

后端 未结 3 1157
难免孤独
难免孤独 2021-01-12 23:44

I have 5 event Scheduler in my MySql data base. I want to stop one event Scheduler from them.

I have used below statements,

SET GLOBAL event_schedule         


        
3条回答
  •  再見小時候
    2021-01-13 00:16

    I think you mean that you have 5 events on one scheduler. Right?

    Here is how you disable one event:

        ALTER EVENT myevent
        DISABLE;
    

    Here is how you disable the entire scheduler (all events):

        SET GLOBAL event_scheduler = OFF;
    

    All this can be read at http://dev.mysql.com/doc/refman/5.1/en/events.html How to disable one event is here http://dev.mysql.com/doc/refman/5.1/en/alter-event.html

提交回复
热议问题