我遇到了event_scheduler问题。
首先,我尝试输入:
SHOW VARIABLES LIKE 'event_scheduler';
我得到一个错误:
错误1290(HY000):MySQL服务器正在使用--skip-grant-tables选项运行,因此它无法执行此语句
然后我检查了 my.ini ,但没有发现任何问题:
[mysql]
default-character-set=utf8
[mysqld]
port = 3306
basedir = "C:\Code\mysql"
datadir = "C:\Code\mysql\data"
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB
secure_file_priv=C:\Code\mysql\data event_scheduler = 1
[client]
default-character-set= utf8
我正在尝试输入:
flush privileges;//query OK;
SET GLOBAL event_scheduler = ON; //or 1 doesn't work;
我仍然收到错误1290