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 https://zhidao.baidu.com/question/460606488.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326290685&siteId=291194637