mysql创建函数存储过程报错
ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL
mysql的设置默认是不允许创建函数
1、更改全局配置
SET GLOBAL log_bin_trust_function_creators = 1;
SET group_concat_max_len=102400;
SET GLOBAL group_concat_max_len=102400;
FLUSH PRIVILEGES;
比如 linux上运行
SET GLOBAL log_bin_trust_function_creators = 1;
flush privileges;