mysql计划事件的开启。

首先查看计划事件是否开启:

mysql> show variables like '%scheduler%';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| event_scheduler | OFF   |
+-----------------+-------+
1 row in set (0.00 sec)

若返回Value值是ON,则表示已经开启,若返回时OFF值表示没有开启。此时需要到mysql配置文件my.cnf新增一项,在mysqld后面添加event_scheduler = on(或是event_scheduler = 1),保存后重启mysql服务器即可。

相关文章:

  • 2021-12-07
  • 2021-06-09
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-11-08
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2021-12-28
  • 2021-07-25
  • 2021-09-21
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案