社区
MySQL
帖子详情
SET GLOBAL log_bin_trust_function_creators = 1 如何在my.cnf里面配置?
mysqldbd
2011-08-19 09:56:38
SET GLOBAL log_bin_trust_function_creators = 1
这个是在 在线 设置的。
能不能在my.cnf中配置下,以后永远不用再手动设置了呢?
...全文
1071
3
打赏
收藏
SET GLOBAL log_bin_trust_function_creators = 1 如何在my.cnf里面配置?
SET GLOBAL log_bin_trust_function_creators = 1 这个是在 在线 设置的。 能不能在my.cnf中配置下,以后永远不用再手动设置了呢?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
iihero_
2011-08-19
打赏
举报
回复
试试在my.cnf中添加:
log-bin-trust-function-creators=1
wwwwb
2011-08-19
打赏
举报
回复
[mysqld]
加上log_bin_trust_function_creators=1
MySql8.0恢复备份或迁移时,函数创建失败
原因:开启了
bin
log
日志,默认关闭函数的生成。 1.临时开启函数生成方法:
set
GLOBAL
log
_
bin
_t
rust
_
function
_
creator
s=1; 2.永久开启,修改数据库my.
cnf
配置
文件
log
_
bin
_t
rust
_
function
_
creator
s=1 重启数据库服务
mysql 创建函数
set
global
log
_
bin
_t
rust
_
function
_
creator
s=TRUE;
set
global
log
_
bin
_t
rust
_
function
_
creator
s=TRUE; delimiter $$ CREATE DEFINER=`zjzc_app`@`%`
FUNCTION
`loadTreeByParent`(begin_sn INT) RETURNS varchar(600) CHAR
SET
utf8 BEGIN DECLARE rest VARCHAR(60
解决MySQL中
log
_
bin
_t
rust
_
function
_
creator
s错误
在MySQL中,
log
_
bin
_t
rust
_
function
_
creator
s是一个系统变量,用于控制是否信任二进制日志中的创建函数。然而,有时候在进行数据库操作时,可能会遇到
log
_
bin
_t
rust
_
function
_
creator
s错误,这意味着MySQL服务器拒绝了创建函数的请求。通过修改MySQL
配置
文件中的
log
_
bin
_t
rust
_
function
_
creator
s变量的值,并重新启动MySQL服务,我们可以解决
log
_
bin
_t
rust
_
function
_
creator
s错误。
关于
log
_
bin
_t
rust
_
function
_
creator
s导致的函数不能执行的解决(问题记录)
log
_
bin
_t
rust
_
function
_
creator
s这个是MySQL的一个内置变量,从字面来说就是在
bin
log
开启的状态下,系统需要信任生成函数,毕竟函数可以做得事情太多啦,系统默认在
bin
log
开启的时候是关闭生成函数的使用的,万一,某天需要通过
bin
log
日志回滚,而所有事务里就带有某些损害系统的函数,后果可能是灾难性的,因此,有这么一个变量。 好了,废话不多说,有临时设置
log
_
bin
_t
rust
_
function
_
creator
s和永久设置
log
_
bin
_t
rust
_
function
.
MySQL参数
log
_
bin
_t
rust
_
function
_
creator
s介绍
MySQL的有个参数
log
_
bin
_t
rust
_
function
_
creator
s,官方文档对这个参数的介绍、解释如下所示:
log
_
bin
_t
rust
_
function
_
creator
s Command-Line Format --
log
-
bin
-t
rust
-
function
-
creator
s System Variable ...
MySQL
56,679
社区成员
56,709
社区内容
发帖
与我相关
我的任务
MySQL
MySQL相关内容讨论专区
复制链接
扫一扫
分享
社区描述
MySQL相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章