MySQL创建触发器的时候报1419错误( 1419 - You do not have the SUPER privilege and binary logging is enabled )

mysql创建触发器的时候报错:

 

解决方法:
第一步,用root用户登录:mysql -u root -p
第二步,设置参数log_bin_trust_function_creators为1:set global log_bin_trust_function_creators = 1;

 

再次尝试创建触发器,成功!(同样,在删除触发器报该错误的时候也是如此处理)

猜你喜欢

转载自www.cnblogs.com/remember-forget/p/11446211.html