mysql创建函数问题
来源:互联网 发布:cnc电脑编程软件有哪些 编辑:程序博客网 时间:2024/04/30 15:33
出错信息大致类似:
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)
建立不了函数,是未开启功能:
SQL code
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>
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)
建立不了函数,是未开启功能:
SQL code
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创建函数问题
- mysql创建函数问题
- mysql 创建函数(function)
- MySql创建函数
- MySql创建函数
- MySql创建函数
- MySql创建函数
- MySql创建函数
- MySql创建函数
- mysql创建自定义函数
- MySQL创建函数错误
- mysql无法创建函数
- MySQL 创建函数(Function)
- mysql创建函数
- mysql创建函数
- mysql 序列创建函数
- mysql 创建字符串函数
- mysql创建函数示例
- ArcGIS API for Javascript 2.X 离线部署(以2.6为例)
- Hibernate连接Oracle数据库的 Hibernate.cfg.xml
- Linux虚拟机开启共享文件夹
- JS中eval解析字符串为json格式
- 查看linux内核(kernel)的方法
- mysql创建函数问题
- Ubuntu下minicom配置 串口工具
- js写txt文件及js数组的有关操作
- 在Android的c/c++代码中使用LOG
- Java操作Hbase进行建表、删表以及对数据进行增删改查,条件查询
- (转)搭建Mantis 缺陷管理系统
- 什么是开源软件(Open source software)
- cat matlab 以特定维链接矩阵
- Android中的五种常用布局