Error Code: 1418

Error Code: 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)

在数据库里面执行这个:

SET GLOBAL log_bin_trust_function_creators=TRUE; 就可以了

原文地址:https://www.cnblogs.com/myzxjspace/p/5033118.html