解决mysql不能创建函数

以下是引用片段: 

Error Code : 1418 

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 

(0 ms taken) 

解决方法如下: 

方法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 

====================================分割线================================

最新内容请见作者的GitHub页:http://qaseven.github.io/

时间: 2024-07-30 12:47:11

解决mysql不能创建函数的相关文章

mysql创建函数出现1418错误的解决办法

本篇文章是对在Mysql中创建函数报"ERROR 1418"的解决方法进行了详细的分析介绍,需要的朋友参考下   复制代码 代码如下: Error Code : 1418 This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_

MYSQL 创建函数出错的解决方案_Mysql

在使用MySQL数据库时,有时会遇到MySQL函数不能创建的情况.下面就教您一个解决MySQL函数不能创建问题的方法,供您借鉴参考. 案例一: 目前在项目中,执行创建mysql的函数出错, mysql 创建函数出错信息如下: Error Code: 1227. Access denied; you need (at least one of) the SUPER privilege(s) for this operation 首先检查创建函数的功能是否开启,检查是否开启创建功能的SQL如下: -

MySQL创建函数出现1418错误解决办法总结

代码如下: 错误码: 1418 This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 这个是创建函数功能未开. (you *might* want to use

在服务器的mysql中创建自定义函数出错

问题描述 在服务器的mysql中创建自定义函数出错 我的一台机器,连接服务器上mysql,创建自定义函数报错[Err] 1418 - This function has none of DETERMINISTIC NO SQL or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators

MYSQL 创建函数出错的解决方案

本文转自IT摆渡网欢迎转载,请标明出处 更多mysq文章请阅读 mysql问题错误修改 在使用MySQL数据库时,有时会遇到MySQL函数不能创建的情况.下面就教您一个解决MySQL函数不能创建问题的方法,供您借鉴参考. 案例一: 目前在项目中,执行创建mysql的函数出错, mysql 创建函数出错信息如下: Error Code: 1227. Access denied; you need (at least one of) the SUPER privilege(s) for this o

MySQL创建函数报“ERROR 1418 ”错误,不能创建函数

错误 ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) ERROR 1418 (HY000): This funct

mysql使用WKB函数创建Geometry(几何)值

  mysql使用WKB函数创建Geometry(几何)值 MySQL提供了众多函数,它们将包含WKT表达式.或可选的空间参考系统ID(SRID)的BLOB作为输入参数.它们返回对应的几何对象. GeomFromWKB()接受任何几何类型的WKB作为其第1个参量.在实施方案中也提供了与类型相关的构造函数,用于构造每一种几何类型的几何值. GeomCollFromWKB(wkb[,srid]) , GeometryCollectionFromWKB(wkb[,srid]) 使用其WKB表示和SRI

sql 函数-mysql创建函数一直提示语句错误

问题描述 mysql创建函数一直提示语句错误 我在数据库的部门表里存的树形结构,在已知子部门时向上查找所有父级部门,写的函数如下 CREATE FUNCTION queryAllDept(@currdeptid varchar(50)) returns varchar(200) BEGIN declare @allname varchar(200) DEFAULT ''; declare @tempname varchar(200) DEFAULT ''; declare @tempparid

mysql 提权问题做到这创建函数出现错误

问题描述 mysql 提权问题做到这创建函数出现错误 mysql版本5.0.22 按照网上的教程进行提权操作但做到 create function sys_eval returns string soname "lib_mysqludf_sys.so": 这一步的时候出现错误 create function sys_eval returns string soname "lib_mysqludf_sys.so"; ERROR 1126 (HY000): Can't