我试图创建一个触发器,每当我这样做,我得到以下错误:
ERROR 1419 (HY000): You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
这是我使用的代码:
DELIMITER $$
DROP TRIGGER IF EXISTS change_interest_rate $$
CREATE TRIGGER change_interest_rate
BEFORE UPDATE ON CHINA
FOR EACH ROW
BEGIN
SET @old_interest = OLD.EXCHANGE_RATE;
SET @new_interest = NEW.EXCHANGE_RATE;
CALL change_interest_rate('CNY', @old_interest, @new_interest);
END$$
DELIMITER ;
在这上面已经有一段时间了,不知道该怎么处理。我试过使用:
set global log_bin_trust_function_creators=1;
但后来我错了说:
Access denied; you need (at least one of) the SUPER privilege(s) for this operation
即使我已被授予数据库的所有权限。有人能帮忙吗?
谢谢!
暂无答案!
目前还没有任何答案,快来回答吧!