重启mysql服务器后,Mysql函数自动更改为默认值

时间:2012-05-17 11:52:14

标签: mysql

如果我重新启动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)

无论发生什么事情,我都想让这个功能开启。

有没有办法让我的值为默认值?

1 个答案:

答案 0 :(得分:3)

如果您愿意,请在log-bin-trust-function-creators中指定option file选项(或在命令行中使用 --log-bin-trust-function-creators mysqld参数)