MySQL数据库开启、关闭、查看函数功能的方法
作者:junjie 时间:2024-01-20 00:41:13
应用 MySQL 时,会遇到不能创建函数的情况。出现如下错误信息:
ERROR 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=1;
关闭MySQL函数功能:
SET GLOBAL log_bin_trust_function_creators=0;
查看状态:
show variables like '%func%';
标签:MySQL,数据库,函数功能
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python编程mac下使用pycharm小技巧
2022-10-21 19:23:52
![](https://img.aspxhome.com/file/2023/9/75119_0s.jpg)
多级联动下拉选择框,动态获取下一级
2008-09-04 10:34:00
js string 转 int 注意的问题小结
2024-05-03 15:30:04
python基于twisted框架编写简单聊天室
2021-12-12 17:56:51
![](https://img.aspxhome.com/file/2023/2/76822_0s.jpg)
在sqlserver2005中安装sql server 2000的示例数据库northwind的方法
2024-01-18 11:00:12
python实现简单登陆流程的方法
2021-01-30 00:48:24
![](https://img.aspxhome.com/file/2023/1/107221_0s.jpg)
js实现随屏幕滚动的带缓冲效果的右下角广告代码
2024-06-07 15:26:48
![](https://img.aspxhome.com/file/2023/7/122597_0s.jpg)
Django的分页器实例(paginator)
2023-06-23 03:22:35
IDEA怎么切换Git分支的实现方法
2022-10-11 14:20:21
![](https://img.aspxhome.com/file/2023/0/132260_0s.png)
python中快速进行多个字符替换的方法小结
2021-08-19 05:59:34
速记Python布尔值
2022-04-23 10:02:17
Python基础篇之初识Python必看攻略
2021-02-21 11:26:10
![](https://img.aspxhome.com/file/2023/4/99604_0s.png)
js正则表达式验证密码强度【推荐】
2024-04-29 13:39:30
![](https://img.aspxhome.com/file/2023/1/132601_0s.png)
Mysql数据库从5.6.28版本升到8.0.11版本部署项目时遇到的问题及解决方法
2024-01-26 03:14:50
![](https://img.aspxhome.com/file/2023/0/117830_0s.png)
如何用SQL语句来建表?
2010-06-13 14:38:00
浅谈vue单一组件下动态修改数据时的全部重渲染
2024-04-27 15:51:55
数据库高并发情况下重复值写入的避免 字段组合约束
2024-01-21 00:13:31
SecureCRTSecure7.0查看连接密码的步骤
2021-01-28 07:34:14
![](https://img.aspxhome.com/file/2023/3/107623_0s.png)
easyUI实现(alert)提示框自动关闭的实例代码
2024-04-22 22:43:31
网马解密大讲堂——网马解密中级篇(Eval篇)
2009-09-16 16:04:00