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