mysql建立自定义函数的问题

时间:2024-01-19 06:26:52 

创建函数时问题马上出现:

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,自定义函数
0
投稿

猜你喜欢

  • Django 实现admin后台显示图片缩略图的例子

    2022-05-30 19:46:02
  • Project Reference优化TypeScript编译性能示例

    2024-04-19 09:43:03
  • 在命令行用 sort 进行排序的方法

    2023-02-23 07:07:38
  • 详解JavaScript中var和let的区别

    2024-04-29 13:23:14
  • 详解利用Python制作中文汉字雨效果

    2023-04-26 07:09:17
  • Python读取yaml文件的详细教程

    2021-03-16 20:43:27
  • 微软Silverlight技术魅力初体验

    2008-11-05 11:16:00
  • 使用Python的Tornado框架实现一个Web端图书展示页面

    2022-04-23 07:23:48
  • python 多线程实现多任务的方法示例

    2021-04-12 08:36:05
  • pytorch读取图像数据转成opencv格式实例

    2021-01-31 03:12:22
  • 详解Django框架中的视图级缓存

    2021-02-02 02:13:33
  • Scala 环境搭建及IDEA工具的配置使用教程

    2023-12-11 06:07:52
  • Sublime Text3 配置 NodeJs 环境的方法

    2024-04-30 09:58:36
  • 浅谈golang并发操作变量安全的问题

    2024-04-26 17:22:23
  • mysql update语句的用法详解

    2024-01-22 13:12:46
  • Vue中插槽slot的使用方法与应用场景详析

    2023-07-02 17:04:11
  • 浅谈python 四种数值类型(int,long,float,complex)

    2023-12-17 05:26:48
  • 导入tensorflow时报错:cannot import name 'abs'的解决

    2023-03-19 12:56:46
  • python获取array中指定元素的示例

    2021-09-11 15:37:43
  • 使用golang编写一个并发工作队列

    2023-09-02 20:54:08
  • asp之家 网络编程 m.aspxhome.com