[Switch] mysql-1418 can not create a solution to the function

ErrorCode:1418 
ThisfunctionhasnoneofDETERMINISTIC,NOSQL,orREADSSQLDATAinitsdeclarationandbinaryloggingisenabled(you*might*wanttousethelesssafelog_bin_trust_function_creatorsvariable)
(0mstaken)  
  The workaround is as follows: 
  1. mysql> SET GLOBAL log_bin_trust_function_creators = 1; 
  2.  When the system starts up --log-bin-trust-function-creators=1 
  3. In the my.ini (my.conf under linux) file, add a line after the [mysqld] tag as log-bin-trust-function-
creators  
If there is a 1418 error when creating a function: then just execute set global log_bin_
trust_routine_creators=1; 
Then there will be no problem with how to create a function (of course, your function must be correct), this is a bug of mysql,
I don't know why, anyway, it's OK to do this.  
In addition, you can also directly add the following line in the configuration file my.cnf [mysqld] log_bin_trust_routine_creators=1; 
This command can be run in the sql editor environment without restarting the service.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327036899&siteId=291194637