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;

 

 

 

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

posted @ 2019-09-02 14:12  _小豪豪  阅读(6074)  评论(0编辑  收藏  举报