# vi /etc/my.cnf wait_timeout=10 # /etc/init.d/mysql restart set global wait_timeout=25920000; show global variables like 'wait_timeout';