应用 MySQL 时,会遇到不能创建函数的情况。出现如下错误信息:
复制代码 代码如下:
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%';
最后
以上就是还单身歌曲最近收集整理的关于MySQL数据库开启、关闭、查看函数功能的方法的全部内容,更多相关MySQL数据库开启、关闭、查看函数功能内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复