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

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之后這個(gè)值叫做table_open_cache)值可能太小,我們查詢一下服務(wù)器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%
網(wǎng)站欄目:MySQLOpen_Table的合理配置
鏈接地址:http://www.5511xx.com/article/cdjdoji.html


咨詢
建站咨詢
