mysql 出現: too many connection
阿新 • • 發佈:2020-11-11
mysql 優化:
轉載:
查詢連線數:
show variables like '%max_connection%';
查詢當前連線數:
show status like 'Threads%';
看thread_connected
設定臨時:
set global max_connections=1000;
https://blog.51cto.com/yanconggod/2058551
https://www.cnblogs.com/rocky404/p/6807744.html
show status like 'Threads%';
set global thread_cache_size=64;
https://blog.csdn.net/u010667710/article/details/102842721
show full processlist; 檢視當前程序 mysql 出現: too many connection 1、定位慢sql 加索引 2、提高資料庫最大連線數