解决方法
1查看是否开启了创建函数的功能
输入下面语句查看是否开启了创建函数的功能
show variables like '%func%';
下面为创建函数功能为开启的查询结果
如果不是上面的结果可以用下面的语句修改为开启
set GLOBAL log_bin_trust_function_creators=true;
//或推荐下面
set GLOBAL log_bin_trust_function_creators=1;
解决方法
1查看是否开启了创建函数的功能
输入下面语句查看是否开启了创建函数的功能
show variables like '%func%';
下面为创建函数功能为开启的查询结果
如果不是上面的结果可以用下面的语句修改为开启
set GLOBAL log_bin_trust_function_creators=true;
//或推荐下面
set GLOBAL log_bin_trust_function_creators=1;