mysql----------mysql5.7.11导入sql文件的时候报错log_bin_trust_function_creators
2017-03-16 15:30
423 查看
1、导入sql文件出现如下错误。
[Err] 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)
[Err] SET FOREIGN_KEY_CHECKS=0;
解决方案:
log_bin_trust_routine_creators全局系统变量为1。设置方法有三种:
1.在客户端上执行SET GLOBAL log_bin_trust_function_creators = 1;
2.MySQL启动时,加上--log-bin-trust-function-creators选贤,参数设置为1
3.在MySQL配置文件my.ini或my.cnf中的[mysqld]段上加log-bin-trust-function-creators=1
[Err] 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)
[Err] SET FOREIGN_KEY_CHECKS=0;
解决方案:
log_bin_trust_routine_creators全局系统变量为1。设置方法有三种:
1.在客户端上执行SET GLOBAL log_bin_trust_function_creators = 1;
2.MySQL启动时,加上--log-bin-trust-function-creators选贤,参数设置为1
3.在MySQL配置文件my.ini或my.cnf中的[mysqld]段上加log-bin-trust-function-creators=1
相关文章推荐
- mysql 创建函数set global log_bin_trust_function_creators=TRUE;
- mysql 创建函数set global log_bin_trust_function_creators=TRUE;
- SQL创建函数不成功的问题-log_bin_trust_function_creators参数研究
- mysql导入sql文件的时候报错Segmentation fault
- MySQL参数log_bin_trust_function_creators介绍
- mysql 创建函数set global log_bin_trust_function_creators=TRUE;
- MySql DETERMINISTIC log_bin_trust_function_creators 自定义函数执行时报错
- 函数相关参数 log_bin_trust_function_creators
- log_bin_trust_function_creators错误!
- log_bin_trust_function_creators变量解释
- log_bin_trust_function_creators和max_allowed_packet
- mysql导入sql文件乱码或者报错unknown command
- MySQL创建Function时报的1418错误代号解决办法 log_bin_trust_function_creators
- log_bin_trust_function_creators
- mysql 关于log_bin_trust_function_creators变量
- 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] you *might* want to use the less safe log_bin_trust_function_creators variable
- mysql导入sql文件报错,“This function has none of DETERMINISTIC”,解决办法
- Amazon RDS MySQL数据库还原时 log_bin_trust_function_creators 错误解决办法
- MySQL导入sql 文件的5大步骤