加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

mysql建立自定义函数的问题

发布时间:2020-12-12 08:11:22 所属栏目:MsSql教程 来源:网络整理
导读:创建函数时问题马上出现: ERROR 1418 (HY000): This routine 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_routine_creators variable) 在
创建函数时问题马上出现:

ERROR 1418 (HY000): This routine 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_routine_creators
variable)
在mysql在线文档中找到解决方案,网址为:
http://dev.mysql.com/doc/refman/5.1/zh/stored-procedures.html#create-procedure
只需要将log_bin_trust_routine_creators 设置为 1 即可,解决方法

在my.ini的[mysqld]下加上log-bin-trust-function-creators=1
希望各位在使用过程中碰到问题少走弯路。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读