mysql 事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。

  • 首先登录数据库

 mysql -uroot -pallcam

mysql 事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。

  • 通过下列语句查询event是否开启

show variables like '%sche%';

mysql 事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。

  • 通过执行下列语句,来开启event_scheduler

set global event_scheduler =1;

或者

set global event_scheduler=on; 

mysql 事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。

 

转载于:https://my.oschina.net/yizhichao/blog/1927418

相关文章:

  • 2021-06-09
  • 2022-01-08
  • 2021-04-30
  • 2021-07-25
  • 2021-07-18
  • 2021-12-14
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-01-09
  • 2022-12-23
  • 2021-09-21
  • 2021-07-25
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案