gpt4 book ai didi

php - 如何摆脱 MySQL 错误 'Prepared statement needs to be re-prepared'

转载 作者:IT王子 更新时间:2023-10-29 00:30:16 29 4
gpt4 key购买 nike

我重写了我的站点 php 代码并添加了 MySQL 存储过程。

在我的本地版本中,一切正常,但在我将我的网站上传到托管服务器后,我不断收到 fatal error “Prepared statement needs to be re-prepared”。

有时页面加载,有时加载失败,我看到这个错误。那是什么?

最佳答案

这是一种可能性:MySQL bug #42041

他们建议提高 table_definition_cache 的值.

您可以阅读有关 statement caching in the MySQL docs 的信息.

关于php - 如何摆脱 MySQL 错误 'Prepared statement needs to be re-prepared',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4380813/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com