Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4139645
  • 博文数量: 447
  • 博客积分: 1241
  • 博客等级: 中尉
  • 技术积分: 5786
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-27 06:48
个人简介

读好书,交益友

文章分类

全部博文(447)

文章存档

2023年(6)

2022年(29)

2021年(49)

2020年(16)

2019年(15)

2018年(23)

2017年(67)

2016年(42)

2015年(51)

2014年(57)

2013年(52)

2012年(35)

2011年(5)

分类: Mysql/postgreSQL

2017-03-31 10:37:50

新安装的mysql 5.7 导入存储过程的时候,出现 You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
我想了一下,新安装的mysql 使用sudo service mysql start
使用root用户,不是mysql用户,由于mysql的安全机制,不允许运行存储过程
mysql> SHOW VARIABLES LIKE 'log_bin_trust_function_creators';
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF   |
临时解决 
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    |
+---------------------------------+-------+
永久解决 编辑 /etc/my.cnf
添加
log-bin-trust-function-creators = 1 
阅读(3384) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~