you *might* want to use the less safe log_bin_trust_function_creators variable
開啟 Binlog 時,創建存儲函數/過程/觸發器需聲明 DETERMINISTIC、NO SQL 或 READS SQL DATA,否則被阻攔。
SET GLOBAL log_bin_trust_function_creators = 1;
或在 my.cnf [mysqld] 區添加:
log_bin_trust_function_creators = 1
重啟服務生效。注意:此設置降低了 Binlog 安全性,僅用於開發/受信環境。