博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Mysql无法创建函数 错误码: 1418
阅读量:7092 次
发布时间:2019-06-28

本文共 1556 字,大约阅读时间需要 5 分钟。

hot3.png

在mysql中创建函数,报

错误码: 1418

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) 这个是创建函数功能未开。

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show variables like '%func%';

+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF   |
+---------------------------------+-------+
1 row in set (0.01 sec)

mysql> set og_bin_trust_function_creators =1;

ERROR 1193 (HY000): Unknown system variable 'og_bin_trust_function_creators'
mysql> set log_bin_trust_function_creators =1;
ERROR 1229 (HY000): Variable 'log_bin_trust_function_creators' is a GLOBAL variable and should be set with SET GLOBAL
mysql> set global log_bin_trust_function_creators =1;
Query OK, 0 rows affected (0.00 sec)

mysql> show variable like '%func%';

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'variable like '%func%'' at line 1
mysql> show variables like '%func%';
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | ON    |
+---------------------------------+-------+
1 row in set (0.01 sec)

mysql> commit;

Query OK, 0 rows affected (0.00 sec)

mysql>

然后在创建函数即可。

转载于:https://my.oschina.net/liuh1988/blog/1611705

你可能感兴趣的文章
.NET:动态代理的 “5 + 1” 模式
查看>>
《Java Concurrency》读书笔记,Java并发编程实践基础
查看>>
jQuery 2.0.3 源码分析Sizzle引擎 - 超级匹配
查看>>
ubuntu中查看各种设备和资源的命令汇总
查看>>
Chrome好用的扩展插件
查看>>
mtd-utils 及 ubi-utils 交叉编译
查看>>
Hyper-V如何应用新的网卡
查看>>
封装jQuery Validate扩展验证方法
查看>>
windows 版Tomcat 7.0的配置
查看>>
三级联动菜单
查看>>
Android之循环显示图像的Android Gallery组件
查看>>
解决一个 MySQL 服务器进程 CPU 占用 100%解决一个 MySQL 服务器进程 CPU 占用 100%的技术笔记》[转]...
查看>>
如何隔離物件之間的相依性
查看>>
linux 下的爆破工具hydra
查看>>
Backup--批量备份和还原
查看>>
轮播组件iceSlider
查看>>
Spark编程指南
查看>>
python入门语法总结 zz
查看>>
向GridView的模板列绑定OnClientClick的函数时出现了奇怪的问题
查看>>
Android之代码创建布局
查看>>