ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,
今天建立MYSQL的儲存過程的時候遇到了: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)
查詢相關資料:
應該是我們開啟了bin-log, 我們就必須指定我們的函式是否是
1 DETERMINISTIC 不確定的
2 NO SQL 沒有SQl語句,當然也不會修改資料
3 READS SQL DATA 只是讀取資料,當然也不會修改資料
4 MODIFIES SQL DATA 要修改資料
5 CONTAINS SQL 包含了SQL語句
其中在function裡面,只有 DETERMINISTIC, NO SQL 和 READS SQL DATA 被支援。 如果我們開啟了 bin-log, 我們就必須為我們的function指定一個引數。
我們可以透過設定如下的引數來關掉這個。
SET GLOBAL log_bin_trust_function_creators = 1;
(you *might* want to use the less safe log_bin_trust_function_creators
variable)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10130206/viewspace-1040489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】ERROR 1418 This function has none of DETERMINISTIC, NO SQL, ...MySqlErrorFunctionNone
- This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its de 錯誤解決辦法FunctionNoneSQL
- This function has none of DETEMINISTIC,NO SQL錯誤解決辦法FunctionNoneSQL
- Oracle Deterministic FunctionOracleFunction
- mysql資料匯入問題處理(ERROR 1418 (HY000))MySqlError
- deterministic function 函式索引Function函式索引
- ORACLE FUNCTION函式中DETERMINISTIC測試OracleFunction函式
- mysql執行sql指令碼報錯ERROR 1366 (HY000) 解決MySql指令碼Error
- An out of memory error has occurred.Error
- ERROR 1010 (HY000): Error dropping databaseErrorDatabase
- ERROR 1524 (HY000): Plugin is not loadedErrorPlugin
- ERROR 2026 (HY000): SSL connection error: unknown error numberError
- MySQL "ERROR 1010(HY000):Error dropping database(canMySqlErrorDatabase
- ERROR 1114 (HY000) The table '' is fullError
- MYSQL ERROR 2003 (HY000) CanMySqlError
- An internal error has occurred. Java heap spaceErrorJava
- 使用自定義函式創Function-Based Indexes時需要使用DETERMINISTIC Functions!函式FunctionIndex
- ERROR 1290 (HY000): The MySQL server is running withErrorMySqlServer
- ERROR 1290 (HY000) 解決辦法Error
- ERROR 1010 (HY000) mysql 5.5.19ErrorMySql
- DBMS_UTILITY.FORMAT_ERROR_BACKTRACE FunctionORMErrorFunction
- error: ‘PATH_MAX’ undeclared (first use in this function)ErrorFunction
- error: use of deleted function ‘YYSTYPE::YYSTYPE()’[解決]ErrordeleteFunction
- 【MySQL】ERROR 1878 (HY000): Temporary file write failure.MySqlErrorAI
- Error!: SQLSTATE[HY000] [2002] Connection refusedErrorSQL
- innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupexError
- An unexpected error has been detected by Java Runtime EnvironmentErrorJava
- The server has encountered an error while loading an applicationServerErrorWhileAPP
- an error has occurred. - no valid devices were found...Errordev
- The connection to adb is down, and a severe error has occured.Error
- An error has occurred when creating this preference page.Error
- 函式DETERMINISTIC函式
- serverless Error: getaddrinfo ENOTFOUND Function.doRequestServerErrorFunction
- 解決ERROR 1030 (HY000): Got error 168 from storage engine apparmorErrorGoAPP
- ORA-15186: ASMLIB error function = [asm_open], error = [1]ASMErrorFunction
- PL/SQL 06 函式 functionSQL函式Function
- SQL 自定義函式FUNCTIONSQL函式Function
- Mysql連線錯誤ERROR 2003 (HY000)MySqlError