分析原因:是log_bin_trust_function_creators值为off导致,因为Table中有Trigger,如果不创建Trigger,不会出现这样的错误信息,但Trigger必须创建
临时解决办法:
用root用户登录:
mysql -u root -p
mysql>set global log_bin_trust_function_creators = 1;
永久解决方案如下:
修改配置文件,在[mysqld]部分加上:
log_bin_trust_function_creators=1
注:linux系统配置文件/etc/my.cnf
windows系统配置文件my.ini