找到MySQL安装目录的my.cnf文件,在[musqld]节点下新增以下内容: log-bin-trust-function-creators=1 修改完成后,重启MySQL,执行命令: service mysqld restart