• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

How to change query_cache_size?

Status
Not open for further replies.

tulipe

New Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition Version 18.0.41 Update #1
Hello, I want to increase the query_cache_size value.
So I made the request :
Code:
plesk db;
SET GLOBAL query_cache_size=16777216; (Query OK, 0 rows affected)
If I do SHOW VARIABLES LIKE '%query_cache%'; the new value has been taken into account.
Code:
+------------------------------+----------+
| Variable_name                | Value    |
+------------------------------+----------+
| query_cache_size             | 16777216
+------------------------------+----------+
However, if I restart mariadb service (service mariadb restart), the value is the old value which returns...
Code:
+------------------------------+----------+
| Variable_name                | Value    |
+------------------------------+----------+
| query_cache_size             | 1048576
+------------------------------+----------+
Do you have any idea please?
Thanks in advance
 
Status
Not open for further replies.
Back
Top