How to set global event_scheduler=ON even if MySQL is restarted?

后端 未结 5 469
暖寄归人
暖寄归人 2020-12-14 06:29

I want to set the event_scheduler global to ON even if MySQL is restarted; how can I achieve this?

SET GLOBAL event_scheduler = ON;         


        
5条回答
  •  忘掉有多难
    2020-12-14 07:14

    One Way - You can set your system variables and use those variables if there is any possibility to restart your mysql.

    Here is link Using system variables in mysql

提交回复
热议问题