今天下午我遇到了MySQL数据库的1418报错,经过一下午的探讨和钻研,发现是数据库版本不匹配,用了以下这两段代码解决了问题!
show variables like '%func%';
set global log_bin_trust_function_creators=1;