• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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