美文网首页
创建函数权限不足

创建函数权限不足

作者: 木讷山人_a986 | 来源:发表于2019-06-10 16:17 被阅读0次

有时候mysql不能建立自定义函数是因为该功能2未开启

输入 show variables like '%func%'; 命令

会看到 log_bin_trust_function_creators 的状态,如果是OFF表示自定义函数功能是关闭的

输入命令 set global log_bin_trust_function_creators=1;

可将 log_bin_trust_function_creators 开启自定义函数功能

但是这样设置是一个临时的方案,因为mysql自动重启后状态又会变为OFF,所以需要在

在服务启动时加上 “--log-bin-trust-function-creators=1 ”参数。
或在my.ini(my.cnf)中的[mysqld]区段中加上 log-bin-trust-function-creators=1。

相关文章

网友评论

      本文标题:创建函数权限不足

      本文链接:https://www.haomeiwen.com/subject/xyozxctx.html