Loading
0

MySQL数据库开启、关闭、查看函数功能的方法
被墙跳转TG:@qianhenetwork QQ 851617266

301免备案跳转微信公众号
腾讯云服务器大促销。
华为服务器

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

301免备案跳转微信公众号
华为服务器
腾讯云服务器大促销。

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:https://www.zfcdn.xyz/showinfo-13-35079-0.html
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
上一篇:Mysql 8.0无法远程报 1251 client does no support authentic解决方法
下一篇:Mysql启动异常innodb引擎数据库损坏修复方法及流程