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)
SET GLOBAL log_bin_trust_function_creators = 1;--log-bin-trust-function-creators=1my.ini (Windows) 或 my.cnf (Linux) 的 [mysqld] 區段加入:log-bin-trust-function-creators=1設定後即可創建不含 DETERMINISTIC/NO SQL/READS SQL DATA 聲明的函數/觸發器/事件。