✔️ 우분투 12.04, MySQL 5.5에서 테스트하였습니다.
- MySQL 쿼리 캐시 설정 확인
1 방법[ | ]
Console
Copy
root@jmnote02:~# cat /etc/mysql/my.cnf | grep -i query_cache
query_cache_limit = 1M
query_cache_size = 16M
Console
Copy
mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+----------+
| Variable_name | Value |
+-------------------------+----------+
| Qcache_free_blocks | 1575 |
| Qcache_free_memory | 10945864 |
| Qcache_hits | 1236902 |
| Qcache_inserts | 776447 |
| Qcache_lowmem_prunes | 368100 |
| Qcache_not_cached | 20841 |
| Qcache_queries_in_cache | 3475 |
| Qcache_total_blocks | 8586 |
+-------------------------+----------+
8 rows in set (0.00 sec)
2 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- MySQL (5)
CentOS MySQL 설치 ― …MySQL BigDump ― JmnoteMySQL STRICT TRANS TABLES ― John JeongMySQL 외래키 옵션 변경 ― 문태부MySQL 컬럼명으로 테이블 찾기 ― Stly3466