由于这几天在写mysql存储过程且发现程序体积越来越庞大,于是尝试使用mysql的函数,创建函数时问题马上出现:
<strong>ERROR 1418 (HY000): This routine has none of DETERMINISTIC, NO SQL,</strong>
<strong>or READS SQL DATA in its declaration and binary logging is enabled</strong>
<strong>(you *might* want to use the less safe log_bin_trust_routine_creators</strong>
<strong>variable)<br /></strong>在mysql在线文档中找到解决方案,网址为:http://dev.mysql.com/doc/refman/5.1/zh/stored-procedures.html#create-procedure只需要将log_bin_trust_routine_creators 设置为 1 即可,解决方法<br />在my.ini的[mysqld]下加上log-bin-trust-function-creators=1<p>希望各位在使用过程中碰到问题少走弯路。<br /></p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/xiazai/code/10308">
<img src="https://img.php.cn/upload/webcode/000/000/015/176138280265254.jpg" alt="微购导购版(原天狼星)">
</a>
<div class="aritcle_card_info">
<a href="/xiazai/code/10308">微购导购版(原天狼星)</a>
<p>功能介绍:1.程序独立使用的MVC模式开发,程序代码与模板分离,会HTML就会做程序模板2.使用sqlite数据库,mysql数据库随便换,让您不再为购买数据库而烦恼3.增加首页数据自定义功能,导航数据自定义,快速打造属于您自己的网站4.seo伪静态设置更智能化,自定义seo规则,让蜘蛛更喜欢您的网站5.屏蔽ip访问功能5.支持一键采集功能,只要轻轻一点,上万淘宝b2c商品轻松入库,解决数据添加的</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="微购导购版(原天狼星)">
<span>2</span>
</div>
</div>
<a href="/xiazai/code/10308" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="微购导购版(原天狼星)">
</a>
</div>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
C++高性能并发应用_C++如何开发性能关键应用
Java AI集成Deep Java Library_Java怎么集成AI模型部署
Golang后端API开发_Golang如何高效开发后端和API
Python异步并发改进_Python异步编程有哪些新改进
C++系统编程内存管理_C++系统编程怎么与Rust竞争内存安全
Java GraalVM原生镜像构建_Java怎么用GraalVM构建高效原生镜像
Python FastAPI异步API开发_Python怎么用FastAPI构建异步API
C++现代C++20/23/26特性_现代C++有哪些新标准特性如modules和coroutines
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号