新聞中心
在使用MySQL數據庫時,有時會遇到MySQL函數不能創(chuàng)建的情況。下面就教您一個解決MySQL函數不能創(chuàng)建問題的方法,供您借鑒參考。

創(chuàng)新互聯(lián)建站堅持“要么做到,要么別承諾”的工作理念,服務領域包括:成都網站建設、成都網站設計、企業(yè)官網、英文網站、手機端網站、網站推廣等服務,滿足客戶于互聯(lián)網時代的西陵網站設計、移動媒體設計的需求,幫助企業(yè)找到有效的互聯(lián)網解決方案。努力成為您成熟可靠的網絡建設合作伙伴!
出錯信息大致類似:
ERROR 1418 (HY000): 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)
ERROR 1418 (HY000): 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函數不能創(chuàng)建,是未開啟功能:
- mysql> show variables like '%func%';
- +---------------------------------+-------+
- | Variable_name | Value |
- +---------------------------------+-------+
- | log_bin_trust_function_creators | OFF |
- +---------------------------------+-------+
- 1 row in set (0.00 sec)
- mysql> set global log_bin_trust_function_creators=1;
- Query OK, 0 rows affected (0.00 sec)
- mysql> show variables like '%func%';
- +---------------------------------+-------+
- | Variable_name | Value |
- +---------------------------------+-------+
- | log_bin_trust_function_creators | ON |
- +---------------------------------+-------+
- 1 row in set (0.00 sec)mysql>
【編輯推薦】
MySQL查詢超時的問題處理方法
MySQL重復記錄的處理方法
mysql查詢前幾條記錄的實現(xiàn)方法
MySQL用戶權限設置方法
帶您了解mysql變量
網站題目:MySQL函數不能創(chuàng)建的解決方法
網頁URL:http://m.fisionsoft.com.cn/article/cophhgg.html


咨詢
建站咨詢
