The solution to the failure of mysql to create a function

Exception log when creating:

Error Code: 1418
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)


Dummy's solution:


The solution is as follows: 
1. mysql> set global log_bin_trust_function_creators = 1;
2. When the system starts --log-bin-trust-function-creators=1
3. In the my.ini (my.conf under linux) file [mysqld ] mark followed by a line with log-bin-trust-function-creators=1 Copy from Du Niang

Guess you like