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