首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫

MySQL Error 1418 解決方案:log_bin_trust_function_creators 參數三種設定方式

     編輯:MySQL 資料庫相關知識

錯誤資訊

Error Code: 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)

三種解決方式

  1. 運行時動態設定: SET GLOBAL log_bin_trust_function_creators = 1;
  2. 啟動參數: --log-bin-trust-function-creators=1
  3. 配置檔永久生效: 在 my.ini (Windows) 或 my.cnf (Linux) 的 [mysqld] 區段加入:log-bin-trust-function-creators=1

設定後即可創建不含 DETERMINISTIC/NO SQL/READS SQL DATA 聲明的函數/觸發器/事件。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved