解决方法
1、用root用户登录:mysql -u root -p
2、设置参数log_bin_trust_function_creators为1
set global log_bin_trust_function_creators = 1;
结果: