热门标签 | HotTags
当前位置:  开发笔记 > 后端 > 正文

Mysql中创建函数报“ERROR1418”的解决方法

Mysql中创建函数报ERROR1418的解决方法ERROR1418(HY000):ThisfunctionhasnoneofDETERMINISTIC,NOSQL,orREADSSQLDATAinitsdeclarationandbinaryloggingisenabled...

Mysql中创建函数报“ERROR 1418”的解决方法
 
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) 
  www.2cto.com  
Sql代码  
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 |  
+---------------------------------+-------+  
 

推荐阅读
author-avatar
邹飞邹飞邹飞
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有