Home > Database > Mysql Tutorial > body text

MySQL数据库开启、关闭、查看函数功能的方法

WBOY
Release: 2016-06-07 16:27:46
Original
1227 people have browsed it

应用 MySQL 时,会遇到不能创建函数的情况。出现如下错误信息: ERROR 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_tru

应用 MySQL 时,会遇到不能创建函数的情况。出现如下错误信息:


ERROR 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)

那是因为没有将功能开启。

开启MySQL函数功能:


SET GLOBAL log_bin_trust_function_creators=1;

关闭MySQL函数功能:


SET GLOBAL log_bin_trust_function_creators=0;

查看状态:


show variables like '%func%';

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template