mysql创建触发器失败

报错信息

  You do not have the SUPER privilege and binary logging is enabled (you *might* want to to use the less safe log_bin_trust_function_creators variable)

使用设置命令: 

  set global log_bin_trust_function_creators=1;

 

永久解决方案如下:

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

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

  log_bin_trust_function_creators=1

就可以创建Trigger了

posted @ 2018-10-08 11:08  Weirdo-world  阅读(398)  评论(0编辑  收藏  举报