This function has none of DETERM

2021-07-15  本文已影响0人  工程师54

今天在mysql中创建函数的时候,报错如下:

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

出现这个错误的原因是,不知道啥时候开启了bin-log。

解决办法:

在mysql中执行  set global log_bin_trust_function_creators=TRUE;

然后就没有上面错误了,耶。。。。

上一篇 下一篇

猜你喜欢

热点阅读