我正在运行与Ubuntu的服务器与双3.0 Ghz处理器的16 GB的RAM
我的PHPMyAdmin显示:Opened_tables 2,573 – 已打开的表的数量。 如果打开的表很大,你的表caching值可能太小了。
我刚刚在4分钟前重新启动MySQL,并将table_cache从default调整为256 ,这不是一个很重的加载时间。 目前,我的数据库总计都在250 MB以下。 这个号码PHpMyAdmin可能显示的是旧的,我只需要等待它来更新?
当前configuration:
key_buffer = 1024M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam-recover = BACKUP max_connections = 1500 table_cache = 256 thread_concurrency = 4 # # * Query Cache Configuration # query_cache_limit = 10M query_cache_size = 512M query_cache_type = 1 # # * Custom Configuration # tmp_table_size = 512M max_heap_table_size = 128M join_buffer_size = 512M myisam_sort_buffer_size = 512M
如果您查看mysql-server附带的示例configuration文件,您可以分别为大和巨大的configurationfind值256和512。 他们可以在下面find:
/usr/share/doc/mysql-server-5.0/examples/
所以,你select的价值应该没问题。 您可能需要重新启动Apache进程和/或清除浏览器caching。
有时,即使我提供了正确的证书,我也无法连接到MySQL服务器。 这是因为浏览器显示我的页面caching版本!
我相信这个号码实际上是包括临时表(内存和磁盘)..
如何偶尔运行flush tables;
看看之后说的是什么。
干杯