Home >Database >Mysql Tutorial >MySQL错误ERROR 1615 解决方法_MySQL

MySQL错误ERROR 1615 解决方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:04:591361browse

今天测试合服脚本的时候,遇到一个很奇怪的问题。Mysql报ERROR:

ERROR 1615 (HY000): Prepared statement needs to be re-prepared

经过测试,发现不是合服脚本的问题。经过一番搜索。发现原来是mysql的变量值设置不合理引起的,调整以下值:

table_open_cache 64=>16384
table_definition_cache 256=>16384
mysql> set global table_open_cache=16384;

mysql> set global table_definition_cache=16384;

重新来一遍合服脚本,一切OK。最后发现这个db机器上数据库过多,估计是open table 过多引起的锁表。

Statement:
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