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

創(chuàng)新互聯(lián)建站堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計(jì)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的西陵網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!
出錯(cuò)信息大致類似:
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函數(shù)不能創(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查詢超時(shí)的問題處理方法
MySQL重復(fù)記錄的處理方法
mysql查詢前幾條記錄的實(shí)現(xiàn)方法
MySQL用戶權(quán)限設(shè)置方法
帶您了解mysql變量
文章標(biāo)題:MySQL函數(shù)不能創(chuàng)建的解決方法
瀏覽地址:http://m.5511xx.com/article/cophhgg.html


咨詢
建站咨詢
