linux教程 ·

mysql操作报You do not have the SUPER privilege….的解决方法

在mysql上执行部分操作时会报如下错误,解决方法如下

mysql操作报You do not have the SUPER privilege....的解决方法 linux教程 第1张

[ERR] 1419 - 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)

通过ssh工具连接服务器,mysql -uroot -p,输入数据库root密码

1、使用设置命令

set global log_bin_trust_function_creators=1;

mysql操作报You do not have the SUPER privilege....的解决方法 linux教程 第2张

2、永久解决方案如下:

linux系统, 在/etc/my.cnf 文件中,[mysqld]部分加上:

windows系统,在my.ini文件中,[mysqld]部分加上:

log_bin_trust_function_creators=1

参与评论