zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

关于Mysql创建函数报错This function has none of DETERMINISTIC, NO SQL, 的解决方案

mysqlSQL解决方案 报错 函数 创建 关于 of
2023-09-27 14:21:38 时间

报错如图:

 

 

 

解决方法如下:

1. mysql> set global log_bin_trust_function_creators = 1;
2. 系统启动时 --log-bin-trust-function-creators=1
3. 在my.ini(linux下为my.conf)文件中 [mysqld] 标记后加一行内容为 log-bin-trust-function-creators=1