我搜索了谷歌,但找不到确切的答案。有些人的这个值是 10000 甚至 20000。其他人说即使 1000 对 1GB 的 RAM 来说也太多了。我糊涂了。
我的数量在opened_tables增长。Mysqltuner 说我应该提高table_cache价值。我试着把它提高到 2K,然后是 3K,然后是 4K,然后我把它变成了 512,看看会发生什么。这是报告:
Currently running supported MySQL version 5.0.67-community-nt-log
Operating on 32-bit architecture with less than 2GB RAM
Archive Engine Installed
Berkeley DB Engine Not Installed
Federated Engine Installed
InnoDB Engine Installed
ISAM Engine Not Installed
NDBCLUSTER Engine Not Installed
Data in InnoDB tables: 12M (Tables: 3)
Data in MEMORY tables: 380K (Tables: 2)
Data in MyISAM tables: 83M (Tables: 84)
Total fragmented …Run Code Online (Sandbox Code Playgroud) mysql ×1