報錯信息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)linux
使用設置命令: sql
set global log_bin_trust_function_creators=1;windows
永久解決方案以下:less
1 linux系統, 在/etc/my.cnf 文件中,[mysqld]部分加上:spa
2 windows系統,在my.ini文件中,[mysqld]部分加上:io
log_bin_trust_function_creators=1function
就能夠建立Trigger了class