mysql 还原数据库 you *might* want to use the less safe log_bin_trust_function_creators variable

C:\WINDOWS\system32>D:\SOFTWARE\mysql-5.7.33-winx64\bin\mysql --port=7506 -uroot --password=pwd < D:\SOFTWARE\mysql-5.7.33-winx64\20220910bak\20220910.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1418 (HY000) at line 1185: 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)

 

解决方法:

SET GLOBAL log_bin_trust_function_creators = 1;

posted @   三瑞  阅读(76)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
历史上的今天:
2018-07-30 困扰半天iBatis 配置问题 做个记录
点击右上角即可分享
微信分享提示