`

log_bin_trust_function_creators错误

    博客分类:
  • DB
阅读更多
当有mysql本地或远程建立function或procedure时报上面的错误
经试验是log_bin_trust_function_creators值为off导致
设置:
set global log_bin_trust_function_creators=1;
但重启后失效

永久解决方案
windows下my.ini[mysqld]加上log_bin_trust_function_creators=1

linux下/etc/my.cnf下my.ini[mysqld]加上log_bin_trust_function_creators=1
保存 ,重启服务器。
分享到:
评论

相关推荐

    you *might* want to use the less safe log_bin_trust_function_creators variable

    恢复MySQL数据库创建存储过程是遇到错误 you *might* want to use the less safe log_bin_trust_function_creators variable 需要执行 SET GLOBAL log_bin_trust_function_creators = 1; 您可能感兴趣的文章:完美...

    开启bin-log日志mysql报错的解决方法

    首先,检查`log_bin_trust_function_creators`变量的当前值,这可以通过执行`SHOW VARIABLES LIKE 'log_bin_trust_function_creators';`来完成。如果其值为`OFF`,这意味着MySQL对bin-log中的函数创建有更严格的限制...

    创建函数或导入文件时出现的错误.docx

    错误提示中提到的“log_bin_trust_function_creators”变量,是MySQL的一个全局系统变量,用于控制是否信任用户创建的非确定性函数。默认情况下,该值为0,表示MySQL不信任这类函数,从而引发上述错误。 解决这个...

    mysql设置触发器权限问题的解决方法.pdf

    本文详细介绍了 MySQL 设置触发器权限问题的解决方法,包括授予超级权限、设置 log_bin_trust_function_creators 变量和关闭二进制日志记录。这些方法可以帮助用户解决权限问题,成功创建或修改触发器,从而维护...

    #1418-该函数的声明中没有DETERMINISTIC,NO SQL或READS SQL DATA,并且启用了二进制日志记录(您*可能*希望使用不太安全的log_bin_trust_function_creators ...

    `log_bin_trust_function_creators`变量默认为关闭,这意味着MySQL不会信任用户创建的函数,尤其是涉及SQL操作的函数,除非明确声明了它们的行为。 在描述中提到了返回`VARCHAR(45) CHARSET utf8`的建议,这可能是...

    MySql8.0恢复备份或迁移时,函数创建失败

    原因:开启了binlog日志,默认关闭函数的生成。 1.临时开启函数生成方法...set GLOBAL log_bin_trust_function_creators=1; 2.永久开启,修改数据库my.cnf配置文件 log_bin_trust_function_creators=1 重启数据库服务

    LINUN命令学习.docx

    LINUN命令学习 本文档主要介绍了Linux操作系统中的基本命令和设置,涵盖了MySQL和Apache的安装、配置和...这些命令用于解决Error Code : 1418错误,log_bin_trust_function_creators变量用于控制函数创建时的行为。

    Mysql主从配置my.cnf.zip

    Mysql主从配置文件,主文件my.cnf,从文件my.cnf完整版。部分配置如下: [client] port = 3306 socket =/tmp/mysql.sock [mysql] no-auto-rehash prompt="\u@\h [\d]>" ...log_bin_trust_function_creators=1

    MySQL数据库开启、关闭、查看函数功能的方法

    要解决这个问题,我们可以调整MySQL的`log_bin_trust_function_creators`变量。这个变量控制是否允许创建不受限的非确定性函数。默认情况下,如果二进制日志启用,这个变量通常是关闭的,导致上述错误。 开启MySQL...

    SQLServer数据库还原问题

    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 DBA线上疑难杂症化解全揭秘

    解决这一错误的方法包括在命令行下使用SET GLOBAL log_bin_trust_function_creators = 1命令,或在MySQL服务启动时使用--log-bin-trust-function-creators=1参数,以及在my.ini(在Linux下为my.conf)配置文件中添加...

    MYSQL 创建函数出错的解决方案

    如果创建函数的功能未开启,你可以通过设置`log_bin_trust_function_creators`变量来允许它: ```sql -- 开启创建函数的功能 SET GLOBAL log_bin_trust_function_creators = 1; ``` 同时,需要注意的是,创建函数...

    MySQL Replication 主从复制全方位解决方案

    | log_bin_trust_function_creators | OFF | | log_bin_use_v1_row_events | OFF | | sql_log_bin | ON | +---------------------------------+-----------------------------------------+ ``` - **查看当前...

    mysql创建函数出现1418错误的解决办法

    代码如下:Error Code : 1418 This function has none of ...creators variable) (0 ms taken) 分析:根据系统提示,导致该错误的原因可能是一个安全设置方面的配置,查手册log_bin_trust_function_creators

    mysql 报错This function has none of DETERMINISTIC解决方案

    你可以通过设置全局变量`log_bin_trust_function_creators`来临时解决此问题。运行以下SQL命令: ```sql mysql> SET GLOBAL log_bin_trust_function_creators = 1; ``` 这将允许你创建未声明特性的函数,但请注意...

    MySQL数据库下用户及用户权限配置

    解决这个问题,我们需要调整`log_bin_trust_function_creators`变量,将其设置为1,允许这样的函数创建: ```sql SET GLOBAL log_bin_trust_function_creators = 1; ``` 执行完导入后,为了恢复安全性,应将该变量...

Global site tag (gtag.js) - Google Analytics