Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在MYSQL AWS RDS上创建触发器_Mysql_Amazon Web Services_Mysql Workbench - Fatal编程技术网

无法在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

我正在尝试在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)

如何解决此问题?

您必须更改DB参数组值

您可以在RDS->选择数据库->配置->数据库参数组->单击默认参数组进行更改,此时将重定向到数据库参数组页面->使用选项新建数据库参数组


并重新启动数据库

你看到错误信息了吗?您需要
super
priv,或者禁用二进制日志。@MarcB我理解消息,但是我不知道如何在AWS RDSSee和上解决它。