无法在MYSQL AWS RDS上创建触发器
我正在尝试在MYSQL AWS RDS实例中的数据库上创建触发器。 当我尝试以下代码时:无法在MYSQL AWS RDS上创建触发器,mysql,amazon-web-services,mysql-workbench,Mysql,Amazon Web Services,Mysql Workbench,我正在尝试在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) valu
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)
如何解决此问题?您必须更改DB参数组值 您可以在RDS->选择数据库->配置->数据库参数组->单击默认参数组进行更改,此时将重定向到数据库参数组页面->使用选项新建数据库参数组
并重新启动数据库 你看到错误信息了吗?您需要
super
priv,或者禁用二进制日志。@MarcB我理解消息,但是我不知道如何在AWS RDSSee和上解决它。