Change MySQL variables without restart

A simple way to change runtime variables wihtout restarting mysql server.

First check the running value:

mysql> show variables like 'long_query%';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| long_query_time | 10 |
+-----------------+-------+

Change the value:

mysql> set @@long_query_time=2;

Check again:

mysql> show variables like 'long_query%';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| long_query_time | 2 |
+-----------------+-------+

Success!

Esta entrada fue publicada en MySQL y etiquetada . Guarda el enlace permanente.

Una respuesta a Change MySQL variables without restart

  1. Kamal Maiti dice:

    It’s NICE article …

    System Engineer.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

*

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>