1、查看函数功能是否开启 show variables like '%func%'; 2、开启与关闭 -- 开启 SET GLOBAL log_bin_trust_function_creators = 1; -- 关闭 SET GLOBAL log_bin_trust_function_creators = 0; 参考文献 https://blog.csdn.net/lv_hang515888/article/details/78094889https://blog.csdn.net/weixin_39782433/article/details/113170917