当前位置:网站首页>MySQL 自定义函数时:This function has none of DETERMINISTIC, NO SQL 解决方案

MySQL 自定义函数时:This function has none of DETERMINISTIC, NO SQL 解决方案

2022-06-26 12:35:00 众纳

数据库:MySQL 8.0 +

环境:Docker

问题描述:

在创建自定义数据时出现如下错误提示:

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

解决方案:

第一步:进入Mysql (不要进入任何一个数据库)

第二步:运行如下SQL语句

 set global log_bin_trust_function_creators=TRUE;

再执行自定义函数,正常执行

原网站

版权声明
本文为[众纳]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44690195/article/details/125421456