Mysql创建函数时报错时间:2023-03-09 19:03:43 先去查询 show variables like '%func%' ; 这个语句,如果该语句最后输出的值是OFF 那么就用下面的语句去修改就可以:set global log_bin_trust_function_creators = 1 然后再创建,就OK了!