mysql 出现的错误
2024-10-18 12:47:49
1:创建函数时提示:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA ,因为当开启log-bin时,函数必须有参数,如果不想有参数,可以
set global log_bin_trust_function_creators=TRUE; 进行设置。 https://blog.csdn.net/topasstem8/article/details/8216740/
mysql> CREATE FUNCTION simpleFun()RETURNS VARCHAR(20) RETURN "Hello World!";
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)
mysql> set global log_bin_trust_function_creators=TRUE;
Query OK, 0 rows affected mysql> CREATE FUNCTION simpleFun()RETURNS VARCHAR(20) RETURN "Hello World!";
Query OK, 0 rows affected
最新文章
- bootstrap-select js jQuery控制select属性变化
- 阿里云服务器上开启linux远程桌面连接
- linux查看硬件常用命令
- Bootstrap modal被sliverlight掩盖。
- 有关于psExec的使用
- BZOJ1099 : [POI2007]树Drz
- Part 82 to 85 Talking about Generic queue, stack collection class
- hdu just a hook(线段树,区间修改)
- Binomial Coeffcients 历届山东省省赛题
- Spring整合Struts2,Hibernate的xml方式
- mysql进阶(二十七)数据库索引原理
- linux ./configure check your system clock
- linux 磁盘空间被占满但找不到目标文件的问题处理 lsof命令
- NOIP水题测试(2017082301)
- [LeetCode] 190. Reverse Bits_Easy tag: Bit Manipulation
- JQuer.HoverDir的基本使用方法
- Java clone方法(下)
- 安装 GraphicsMagick
- 【Udacity】朴素贝叶斯
- 7、Java并发编程:深入剖析ThreadLocal