show variables like ‘%timeout%’; set wait_timeout=31536000; set interactive_timeout=31536000; 退出后,又变为原来的数。 解决方案: