Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Enable Query Cache in MySQL
ChannelInternet Services and Social Networks Tutorials from HowTechDescription from the creator
Follow this easy step by step tutorial to learn mysql query caching feature and see how it can be enabled.
Don't forget to check out our site howtech.tv/ for more free how-to videos!
youtube.com/ithowtovids - our feed
facebook.com/howtechtv - join us on facebook
plus.google.com/103440382717658277879 - our group in Google+
Query caches are useful as far as the database performance is concerned, as it makes a cache of the used queries and thus can fetch the data quickly.
In this tutorial we will learn to enable the mysql query cache feature.
Step 1- MySQL Folder
To enable mysql query caching, first of all, open up the "my.ini" file in the MySQL instance.
As we are using WAMP server, we will simply click on its icon on the taskbar, then go to MySQL and click on the "my.ini" file.
Step 2- Modifying the File
With the file opened up, scroll down to the bottom and just add the following lines:
query_cache_type=1
query_cache_size=20M
With that done, just save the file and close it.
Step 3- Restarting Wamp Services
After that, we have to restart all our Wamp services.
Wait for the Wamp icon to turn green again.
Step 4- Opening the Console
Now open up the MySQL console to verify the working of mysql query cache feature.
Step 5- Cache Statistics
With the console opened up, write the following query:
SHOW VARIABLES LIKE '%query_cache%';
A table would appear and next to the query cache option, the value would be "YES" which means that the feature has been enabled.
And this is how we can enable mysql query caching feature.
Don't forget to check out our site howtech.tv/ for more free how-to videos!
youtube.com/ithowtovids - our feed
facebook.com/howtechtv - join us on facebook
plus.google.com/103440382717658277879 - our group in Google+
Query caches are useful as far as the database performance is concerned, as it makes a cache of the used queries and thus can fetch the data quickly.
In this tutorial we will learn to enable the mysql query cache feature.
Step 1- MySQL Folder
To enable mysql query caching, first of all, open up the "my.ini" file in the MySQL instance.
As we are using WAMP server, we will simply click on its icon on the taskbar, then go to MySQL and click on the "my.ini" file.
Step 2- Modifying the File
With the file opened up, scroll down to the bottom and just add the following lines:
query_cache_type=1
query_cache_size=20M
With that done, just save the file and close it.
Step 3- Restarting Wamp Services
After that, we have to restart all our Wamp services.
Wait for the Wamp icon to turn green again.
Step 4- Opening the Console
Now open up the MySQL console to verify the working of mysql query cache feature.
Step 5- Cache Statistics
With the console opened up, write the following query:
SHOW VARIABLES LIKE '%query_cache%';
A table would appear and next to the query cache option, the value would be "YES" which means that the feature has been enabled.
And this is how we can enable mysql query caching feature.
About this tutorial
Internet Services and Social Networks Tutorials from HowTech published this 1:16 video tutorial on November 7, 2013. It has been watched 9,975 times on YouTube.
- Category
- Howto & Style
- Duration
- 1:16
- Published
- November 7, 2013
- Views
- 9,975
- Likes
- 24
Share
This tutorial in other languages
- FRComment faire pour activer cache de requêtes MySQL
- ESCómo habilitar la caché de consultas en MySQL
- PTComo habilitar a Cache de Consultas no MySQL
- ITCome attivare Query Cache in MySQL
- DESo aktivieren Sie Abfrage-Cache in MySQL
- NLHoe kan inschakelen Query Cache in MySQL
- RUВключение кэширования запросов в MySQL
- PLJak włączyć Query Cache w MySQL
- JAMySQLでクエリキャッシュを有効にする方法
- ARكيفية تمكين سؤال ذاكرة التخزين المؤقت في الخلية
- HIसक्षम कैसे MySQL में क्वेरी कैश
- IDCara Aktifkan Query Cache di MySQL