Mysql DB 无法创建 function,报错:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL
ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL
mysql的设置默认是不允许创建函数
1、更改全局配置
SET GLOBAL log_bin_trust_function_creators = 1;
有主从复制的时候 , 从机必须要设置 不然会导致主从同步失败
2、更改配置文件my.cnf
log-bin-trust-function-creators=1 重启服务生效