Borrar la caché de consultas MySQL sin reiniciar el servidor
¿Hay alguna manera de borrar mysql caché de consulta sin reiniciar el servidor MySQL?
138
3 answers
Creo que puedes usar...
RESET QUERY CACHE;
...si el usuario que está ejecutando como tiene derechos de recarga. Alternativamente, puede desfragmentar la caché de consultas a través de...
FLUSH QUERY CACHE;
Consulte la sección Estado y Mantenimiento de la caché de consultas del manual de MySQL para obtener más información.
186
Author: John Parker,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-26 07:20:49
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-26 07:20:49
En mi sistema (Ubuntu 12.04) encontré RESET QUERY CACHE
e incluso reiniciar el servidor mysql no es suficiente. Esto se debió a almacenamiento en caché de disco de memoria.
Después de cada consulta, limpio la caché del disco en el terminal:
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
Y luego restablecer la caché de consultas en el cliente mysql:
RESET QUERY CACHE;
41
Author: Leszek,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-04-13 12:22:45
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-04-13 12:22:45
17
Author: Manu Eidenberger,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-03-08 11:18:44
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-03-08 11:18:44