Mysql 报错:You do not have the SUPER privilege and binary logging is enabled

在Magento2中安装模块MySQL出现 You do not have the SUPER privilege and binary logging is enabled报错

报错信息

解决方案:1、用root用户登录:mysql -u root -p2、设置参数log_bin_trust_function_creators为1

 set global log_bin_trust_function_creators = 1;