解决方法步骤 1、在mysql启动后输入如下命令 mysql> set global log_bin_trust_function_creators = 1; 2、在my.ini(linux下为my.conf)文件中 [mysqld] 标记后加一行内容为 log-bin-trust-function-creators=1 要注意的是下次启动mysql时可能会报错,将my.ini下的 log-bin-trust-function-creators=1 删除即可;