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)
数据库版本:8.0.26
解决办法:
方法一 :
查询客户端界面或这命令行界面执行如下修改参数
SET GLOBAL log_bin_trust_function_creators = 1;
方法二 :
在MySQL配置文件my.ini或my.cnf中的[mysqld]段上加log-bin-trust-function-creators=1;
修改完毕配置文件,重启mysql 服务;