时间:2021-07-01 10:21:17 帮助过:44人阅读
代码如下:
ERROR 1418 : 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)
那是因为没有将功能开启。
开启MySQL函数功能:
代码如下:
SET GLOBAL log_bin_trust_function_creators=1;
关闭MySQL函数功能:
代码如下:
SET GLOBAL log_bin_trust_function_creators=0;
查看状态:
代码如下:
show variables like '%func%';