mysql建立自定义函数的问题
2011-04-22 23:27
323 查看
由于这几天在写mysql存储过程且发现程序体积越来越庞大,于是尝试使用mysql的函数,创建函数时问题马上出现:
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希望各位在使用过程中碰到问题少走弯路。
相关文章推荐
- mysql建立自定义函数的问题
- mysql建立自定义函数的问题
- mysql 中自定义实现split功能的函数
- 【MySql】3.1 自定义函数的使用
- mysql创建自定义函数和存储过程
- MySQL自定义函数
- 给Mysql加自定义函数计算百分位数(percentile)。
- 使用C++标准库sort自定义比较函数导致死循环问题
- MySQL自定义函数用法详解-复合结构自定义变量/流程控制--及其相关案例
- MySQL存储过程和自定义函数、Navicat for mysql、创建存储过程和函数、调用存储过程和函数的区别
- mysql自定义函数学习笔记
- MySQL 第八篇:自定义函数、存储过程、游标
- (9)mysql中的存储过程和自定义函数
- navicat与phpmyadmin做mysql的自定义函数和事件
- MSSQL 和 Mysql 切割字符串 自定义函数与存储过程
- mysql创建函数问题
- 给MySQL添加http-udf,http-json等自定义函数
- mysql 函数注意的小问题
- MySQL(六) —— 自定义函数
- Mysql group_concat函数被截断的问题