mysql:Prepared statement needs to be re-prepared

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36607076/article/details/81280677

mysql:Prepared statement needs to be re-prepared

table_open_cache:表描述符缓存大小

table_definition_cache:从MySQL5.1开始,数据表文件描述符被分开为数据文件及数据表定义两部分,表定义文件缓存可以放在专属的table_definition_cache中,表定义文件缓存相比表文件描述符缓存所消耗的内存更小,其默认值是400

这2个配置的问题

SHOW VARIABLES LIKE ‘%table_open_cache%’;

SHOW VARIABLES LIKE ‘%table_definition_cache%’;

SET GLOBAL table_open_cache=16384;
SET GLOBAL table_definition_cache=16384;

猜你喜欢

转载自blog.csdn.net/qq_36607076/article/details/81280677