在使用 MySQL 數(shù)據(jù)庫的時候,經(jīng)常會遇到一個問題,就是 “Can not connect to MySQL server. Too many connections” -mysql 1040 錯誤,這是因為訪問 MySQL 且還未釋放的連接數(shù)已經(jīng)達到 MySQL 的上限。通常,MySQL 的最大連接數(shù)默認是 100,,最大可以達到 16384。
www.dbjr.com.cn/program/287742h...htm 2025-6-9