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


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

原文地址:https://blog.csdn.net/pk490525/article/details/7309207


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM