lunes, 6 de abril de 2015

cambiar el tiempo de espera del servidor MySql "server has gone away" variable wait_timeout


// por defecto la variable wait_timeout esta a 8 horas es decir 28800 segundos
// para verla entramos en

cmd.exe
mysql -h localhost -uroot -p12345    // si la clave fuera p.e. 12345
SHOW VARIABLES LIKE "%wait_timeout%";

 // para cambiar el valor salimos
exit;

// y escribimos el valor como minimo 1 y maximo 2147483

mysql -h localhost -uroot -p12345 -e"SET GLOBAL wait_timeout=2000000; SET GLOBAL interactive_timeout=2000000;"





seg min horas dias
28800 480 8 0,333333333
2000000 33333,33333 555,5555556 23,14814815


.

No hay comentarios: