设置数据库永远生效
# 在线设置下:
mysql>set global wait_timeout=31536000;
QueryOK, 0 rows affected (0.00 sec)
mysql>
# 然后在my.cnf里面设置添加,再以后db重启的时候生效:
wait_timeout=31536000
interactive_timeout=31536000
Powered by: 博客园 Copyright © 2024 moss_tan_jun Powered by .NET 8.0 on Kubernetes