You do not have the SUPER privilege and binary logging is enabled解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了You do not have the SUPER privilege and binary logging is enabled解决方法相关的知识,希望对你有一定的参考价值。

【现象】

mysql中创建触发器时,报如下错误

Query:
/*!50003 CREATE */ /*!50017 DEFINER = 'admin'@'%' */ /*!50003 TRIGGER `new_auth_chart_group` AFTER INSERT ON `chart_group` FOR EACH ROW select copy_auth(NEW.id,'chart',NEW.create_by) into @ee */

Error occured at:2023-02-11 23:57:24
Line no.:25
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)

【解决方法】

SET GLOBAL log_bin_trust_function_creators = 1;

以上是关于You do not have the SUPER privilege and binary logging is enabled解决方法的主要内容,如果未能解决你的问题,请参考以下文章