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   重启服务生效

相关文章:

  • 2021-08-07
  • 2021-09-19
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-06-23
  • 2021-09-09
  • 2021-12-26
  • 2021-08-25
  • 2022-01-04
相关资源
相似解决方案