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) 我本机的错误: {"This function has none of DETERMINISTIC, NO SQL, or RE...
其中在function里面,只有 DETERMINISTIC, NO SQL 和 READS SQL DATA 被支持。如果我们开启了 bin-log, 我们就必须为我们的function指定一个参数。 解决方法: 1. 修改 log_bin_trust_function_creators 参数值为ON mysql> show variables like '%log_bin%'; mysql> set global log_bin_trust_function_creators ...
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, 我们就必须为我们...
1. mysql> set global log_bin_trust_function_creators = 1; 2. 系统启动时 --log-bin-trust-function-creators=1 3. 在my.ini(linux下为my.conf)文件中 [mysqld] 标记后加一行内容为 log-bin-trust-function-creators=1 为人:谦逊、激情、博学、审问、慎思、明辨、 笃行 学问:纸上得来终觉浅,绝知...
其中在function里面,只有 DETERMINISTIC, NO SQL 和 READS SQL DATA 被支持。如果我们开启了 bin-log, 我们就必须为我们的function指定一个参数。 解决方法: SQL code mysql> show variables like 'log_bin_trust_function_creators'; +---+---+ | Variable_name | Value | +---+---+ | log_bin_...
在 MySQL 中,创建存储函数的基本语法如下: ```sql CREATE FUNCTION function_name (parameter_list) RETURNS return_type [characteristic ...] routine_body ``` 其中,`function_name` 是函数的名称,`parameter_list` 是参数列表,`return_type` 是返回值的类型,`characteristic` 是函数的特性声明,`routine_body...
其中在function里面,只有 DETERMINISTIC, NO SQL 和 READS SQL DATA 被支持。如果我们开启了 bin-log, 我们就必须为我们的function指定一个参数(log_bin_trust_function_creators )。 查看数据参数 解决办法: 1)临时生效 SET GLOBAL log_bin_trust_function_creators = 1; 不过 重启了 就失效了 注意:有主从复制...
5 CONTAINS SQL 包含了SQL语句 其中在function里面,只有 DETERMINISTIC, NO SQL 和 READS SQL DATA 被支持。如果我们开启了 bin-log, 我们就必须为我们的function指定一个参数。 在MySQL中创建函数时出现这种错误的解决方法: set global log_bin_trust_function_creators=TRUE;...
方法/步骤 1 一:翻译后的具体的报错信息如下 错误代码:1418此函数在其声明中没有DETERMINISTIC,NO SQL或READS SQL DATA,并且启用了二进制日志记录(您可能*希望使用不太安全 的 log_bin_trust_function_creators变量). 从这里可以看出,"log_bin_trust_function_creators "是一个变量,并且是一个不安全的...
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) 此函数的声明中没有DETERMINISTIC,NO SQL或READS SQL DATA,并且启用了二进制日志记录(您*可能*希望...