mysql 导入sql文件,出现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   重启服务生效

猜你喜欢

转载自blog.csdn.net/bianb123/article/details/83088612