If I restart the mysql server, it changes the value to default value automatically.
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)
I would like to make this function ON no matter what happen.
Is there way to make it the my value to default value?
Specify the
log-bin-trust-function-creatorsoption in an option file (or use the--log-bin-trust-function-creatorsargument tomysqldon the command-line if you prefer).