MySQL版本:5.7.27
1.在创建存储过程时
执行sql提示报错: This function has none of DETERMINISTIC ,NO SQL,or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to user the less safe log_bin _trust_function_creators variables)
2.解决方式
解决需要修改global log_bin_trust_function_creators
变量的值,默认值为OFF
1.临时生效
set global log_bin_trust_function_creators=1;2.永久生效
修改 /etc/my.cnf 配置文件
[mysqld]
log_bin_trust_function_creators=1