首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

MySQL数据库开启或封闭函数功能

2012-07-03 
MySQL数据库开启或关闭函数功能应用MySQL时,会遇到不能创建函数的情况。出现如下错误信息: ERROR 1418 : Th

MySQL数据库开启或关闭函数功能

应用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%';

?

热点排行