如果我重新启动mysql服务器,它会自动将值更改为默认值。
mysql> show global variables like 'log_bin_trust_function_creators';
+---------------------------------+-------+
| Variable_name | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF |
+---------------------------------+-------+
1 row in set (0.00 sec)
mysql> SET GLOBAL log_bin_trust_function_creators = ON;
Query OK, 0 rows affected (0.00 sec)
无论发生什么事情,我都想让这个功能开启。
有没有办法让我的值为默认值?
答案 0 :(得分:3)
如果您愿意,请在log-bin-trust-function-creators
中指定option file选项(或在命令行中使用 --log-bin-trust-function-creators
的mysqld
参数)