第一次写Mysql函数的时候报的这个错误,分享一下。
1.先查看函数功能是否开启:show variables like '%func%'
;
2.开启:SET GLOBAL log_bin_trust_function_creators = 1
;
3.关闭:SET GLOBAL log_bin_trust_function_creators = 0
;
----------------------------效果👇👇👇----------------------------------------
改之前:
改之后:
参考文献:
1.https://blog.csdn.net/lv_hang515888/article/details/78094889
2.https://blog.csdn.net/weixin_39782433/article/details/113170917