通过本文主要向大家介绍了mysql数据库开启,怎么开启mysql数据库,开启mysql数据库服务,如何开启mysql数据库,mysql关闭数据库等相关知识,希望本文的分享对您有所帮助
应用 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)
</div>
那是因为没有将功能开启。
开启MySQL函数功能:
SET GLOBAL log_bin_trust_function_creators=1;
</div>
关闭MySQL函数功能:
SET GLOBAL log_bin_trust_function_creators=0;
</div>
查看状态:
show variables like '%func%';
</div>