1. 程式人生 > 資料庫 >mysql 出現: too many connection

mysql 出現: too many connection

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

https://www.cnblogs.com/yufeng218/p/10029862.html

 

show full processlist; 檢視當前程序 mysql 出現: too many connection  1、定位慢sql 加索引  2、提高資料庫最大連線數