[Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)

 

 

第一种办法,需要声明DETERMINISTIC,NO SQL或READS SQL DATA的一种

第二种办法,信任子程序的创建者,设置变量log_bin_trust_function_creators值为1

-- 查看该参数代码,默认为0
select @@log_bin_trust_function_creators;
-- 设置为1的代码
set GLOBAL log_bin_trust_function_creators=1;


————————————————
版权声明:本文为CSDN博主「littleshimmer」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_43521551/article/details/107088211

posted on 2022-03-11 17:44  浅笑倾城泪  阅读(311)  评论(0编辑  收藏  举报