我在mysql配置文件(my.ini)中将
table_cache设置为1000,然后重启数据库。
然后我进入mysql中查看,按照我想的,table_open_cache应该是1000,结果显示的是
mysql> show variables like 'table_open_cache';
+------------------+-------+
| Variable_name    | Value |
+------------------+-------+
| table_open_cache | 507   |
+------------------+-------+
1 row in set (0.00 sec)
而且不管我把table_cache改为多少,数据库里看到的都是507,然后我把my.ini的table_cache换成table_open_cache=1000,
数据库里显示的还是507,纳闷,请各位帮忙解释一下!
ps:
mysql> select version();
+----------------------+
| version()            |
+----------------------+
| 5.1.40-community-log |
+----------------------+
1 row in set (0.00 sec)mysql> show status like 'open%tables';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Open_tables   | 8     |
| Opened_tables | 0     |
+---------------+-------+
2 rows in set (0.00 sec)