# 查看最大连接数 show variables like '%max_connections%'; # 设置最大连接数 set global max_connections = 16384; #查看睡眠连接超时 SHOW GLOBAL VARIABLES LIKE '%timeout'; #设置睡眠连接超时 set global wait_timeout=3600;
my.cnf配置:
[mysqld] #最大连接数 max_connections=16384 #睡眠连接超时(单位:秒) wait_timeout=3600 #锁超时 lock_wait_timeout=30
参考:
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END



















![[PDF文件格式参考]PDF Reference 1.7-JoyCode 斑马快跑](https://qiniu.joycode.com.cn/2020/10/20201011222013698208.jpeg)











