This function has none of DETERMINISTIC, NO SQL 解决办法

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介: 在恢复mysql数据库时提示 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might...

在恢复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)

原因:是因为开启了bin-log

解决办法

SQL code

mysql >   show variables   like   'log_bin_trust_function_creators';
+ -- -------------------------------+-------+
|   Variable_name                     |   Value   |
+ -- -------------------------------+-------+
|   log_bin_trust_function_creators   |   OFF     |
+ -- -------------------------------+-------+
mysql >   set   global log_bin_trust_function_creators = 1 ;
mysql >   show variables   like   ' log_bin_trust_function_creators ' ;
+ -- -------------------------------+-------+
|   Variable_name                     |   Value   |
+ -- -------------------------------+-------+
|   log_bin_trust_function_creators   |   ON      |
+ -- -------------------------------+-------+
 
这样添加了参数以后,如果mysqld重启,那个参数又会消失,因此记得在my.cnf配置文件中添加:
log_bin_trust_function_creators=1
相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
6月前
TypeError:Joi.validate is not a function 解决办法
TypeError:Joi.validate is not a function 解决办法
|
1月前
|
SQL Windows
安装SQL Server 2005时出现对性能监视器计数器注册表值执行系统配置检查失败的解决办法...
安装SQL Server 2005时出现对性能监视器计数器注册表值执行系统配置检查失败的解决办法...
22 4
|
1月前
|
SQL
SQL Server2008 安装报错Restart computer failed的解决办法
SQL Server2008 安装报错Restart computer failed的解决办法
45 0
|
1月前
|
缓存
pytest 运行测试函数报错的解决办法 TypeError: calling <function xxx> returned None, not a test
pytest 运行测试函数报错的解决办法 TypeError: calling <function xxx> returned None, not a test
180 0
|
11月前
|
SQL 安全 数据库
SQL Server附加数据库的方法,及出现错误的解决办法(错误:5123)
SQL Server附加数据库的方法,及出现错误的解决办法(错误:5123)
Zp
|
SQL Oracle 关系型数据库
Oracle sql使用sys_guid() 生成32位id乱码解决办法
Oracle sql使用sys_guid() 生成32位id乱码解决办法
Zp
2285 0
Oracle sql使用sys_guid() 生成32位id乱码解决办法
|
SQL NoSQL 关系型数据库
MySQL:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA
MySQL:ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA
189 0
|
JavaScript
Vue项目,安装less,less-loader,报错【TypeError: this.getOptions is not a function】解决办法
Vue项目,安装less,less-loader,报错【TypeError: this.getOptions is not a function】解决办法
665 0
Vue项目,安装less,less-loader,报错【TypeError: this.getOptions is not a function】解决办法
IDEA本地报错 ConnectionCallback; isValid; nested exception is java.sql.SQLFeatureNotSupportedException: isValid的解决办法
IDEA本地报错 ConnectionCallback; isValid; nested exception is java.sql.SQLFeatureNotSupportedException: isValid的解决办法
IDEA本地报错 ConnectionCallback; isValid; nested exception is java.sql.SQLFeatureNotSupportedException: isValid的解决办法

热门文章

最新文章