【发布时间】:2016-01-25 17:50:21
【问题描述】:
我正在尝试在我的数据库上创建一个触发器,该数据库位于 MYSQL AWS RDS 实例中。 当我尝试下面的代码时:
DELIMITER $$
USE database_name $$
CREATE DEFINER=oldloginuser@localhost trigger newtrigger after update on db_col
for each row
begin
if new.hits != old.hits then
insert into log(id, access_time) values (new.id, now());
end if;
end
我收到以下错误:
Error Code: 1419. 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)
我该如何解决这个问题?
【问题讨论】:
-
您是否阅读了错误信息?你需要
superpriv,或者禁用二进制登录。 -
@MarcB 我理解这条消息但是我不知道如何在 AWS RDS 上解决它
标签: mysql amazon-web-services mysql-workbench