Your Webhosting Questions
Answered by the Webhosting Experts

How to check MySQL query caching status on your linux server?

Login to your server as root.


On mysql prompt fire the following command:


mysql> SHOW VARIABLES LIKE ‘%query_cache%’;


This will result the table as follows :

| Variable_name | Value |
| have_query_cache | YES |
| query_cache_limit | 1048576 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 134217728 |
| query_cache_type | ON |
| query_cache_wlock_invalidate | OFF |
6 rows in set (0.00 sec)


query_cache_type will be set to ON or OFF as required.

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: [email protected]. We are also available to you through our phone and live chat system 24/7/365.

Tags +