当我尝试这段代码时:
SHOW GRANTS FOR 'secret'@'localhost';
这是结果:
Grants for secret@localhost
GRANT USAGE ON *.* TO 'secret'@'localhost' IDENTIFIED BY PASSWORD 'secretpass'
GRANT ALL PRIVILEGES ON `secret\_dbx`.* TO 'secret'@'localhost'
GRANT ALL PRIVILEGES ON `secret\_db1x`.* TO 'secret'@'localhost'
但是当我想在
上设置event_scheduler时SET GLOBAL event_scheduler = "ON"
此错误显示:
#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation
然后尝试了这段代码:
GRANT SUPER ON *.* TO secret@'localhost' IDENTIFIED BY 'secretpass';
FLUSH PRIVILEGES;
然后是错误:
Access denied for user 'secret'@'localhost' (using password: YES)
我知道我使用root,我使用用户名和密码访问我域名的控制面板。