《Mysql應用mysql創建函數出現1418錯誤的解決辦法》要點:
本文介紹了Mysql應用mysql創建函數出現1418錯誤的解決辦法,希望對您有用。如果有疑問,可以聯系我們。
代碼如下:
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)
(0 ms taken)
分析:
根據系統提示,導致該錯誤的原因可能是一個平安設置方面的配置,查手冊log_bin_trust_function_creators參數缺省0,是不允許function的同步的,一般我們在配置repliaction的時候,都忘記關注這個參數,這樣在master更新funtion后,slave就會報告錯誤,然后slave stoped.
處理過程:
登陸mysql數據庫
> set global log_bin_trust_function_creators = 1;
> start slave;
跟蹤mysql的啟動日志,slave正常運行,問題解決.
維易PHP培訓學院每天發布《Mysql應用mysql創建函數出現1418錯誤的解決辦法》等實戰技能,PHP、MYSQL、LINUX、APP、JS,CSS全面培養人才。
轉載請注明本頁網址:
http://www.snjht.com/jiaocheng/11556.html