新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
MySQLOpen_Table的合理配置
MySQL Opened_tables表示打開過的表數(shù)量,下文就將教您如何合理配置MySQL Open_Table的值,希望對您學習MySQL數(shù)據(jù)庫能有所幫助。

MySQL Open_Table情況:
- mysql> show global status like 'open%tables%';
- +---------------+-------+
- | Variable_name | Value |
- +---------------+-------+
- | Open_tables | 919 |
- | Opened_tables | 1951 |
- +---------------+-------+
MySQL Open_tables表示打開表的數(shù)量,如果MySQL Opened_tables數(shù)量過大,說明配置中table_cache(5.1.3之后這個值叫做table_open_cache)值可能太小,我們查詢一下服務器table_cache值:
- mysql> show variables like 'table_cache';
- +---------------+-------+
- | Variable_name | Value |
- +---------------+-------+
- | table_cache | 2048 |
- +---------------+-------+
MySQL Open_Table比較合適的值為:
- Open_tables / Opened_tables * 100% >= 85%
- Open_tables / table_cache * 100%
本文標題:MySQLOpen_Table的合理配置
文章路徑:http://m.fisionsoft.com.cn/article/cdjdoji.html


咨詢
建站咨詢
