Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的/etc/my.cnf文件中尝试过:
/etc/my.cnf
event-scheduler = ON
使用 MYSQL 5.5。我已关闭/打开服务,但没有全局变量EVENT_SCHEDULER = ON
EVENT_SCHEDULER = ON
在 的[mysqld]部分中my.cnf,添加以下内容:
[mysqld]
my.cnf
event_scheduler=ON
这应该使它能够用于未来的启动。
对于您当前的 MySQL 会话,您可以通过以下方式启用它:
SET GLOBAL event_scheduler = 1;