错误:This function has none of DETERMINISTIC... 的解决

问题:

  在MySQL创建了一个批量插入的存储过程,在代码中调用的时候报错误信息:

  error code [1418];This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled...

解决方法:

  因为我们在MySQL中开启了bin-log日志,所以创建函数或者存储过程,必须声明其为确定性的(DETERMINISTIC),或者声明为不修改数据(READS SQL DATA) 。

  在MySQL中执行以下脚本,对参数进行设置即可。

  set global log_bin_trust_function_creators=TRUE;

原文地址:https://www.cnblogs.com/pcheng/p/5012154.html