Check connection related issue of mysql
Check connection issue of mysql
#show connection configuration
show variables like '%max_connection%';
#Change the limitation of max_connection temporarily
set global max_connections=600;
#check current status
status;
#check how many processes running
show processlist;
#Kill the locked connections
for id in `mysqladmin processlist | grep -i locked | awk '{print $1}'`
do
mysqladmin kill ${id}
done
#Run killing sql
source kill_thread_id.sql
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10973950/viewspace-2215352/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- EOSIO MySQL 外掛 issue 2MySql
- EOSIO MySQL 外掛 issue 1MySql
- mysql connection refusedMySql
- Mysql replication check指令碼MySql指令碼
- Statistics related viewView
- issue
- Nagios使用check_mysql監控mysqliOSMySql
- MySQL:Lost connection to MySQL server at 'readingMySqlServer
- 【Mysql】MySql Host is blocked because of many connection errors;MySqlBloCError
- MySQL之mysqlcheck、check、optimize和analyzeMySql
- ESD Related knowledge
- Dr.Elephant mysql connection errorMySqlError
- Mysql optimize、Analyze、check、repair維護操作MySqlAI
- Dr.Elephant mysql connection error薦MySqlError
- 【MySQL】Host is blocked because of many connection errorsMySqlBloCError
- SD T-code related
- Good documentation or books related to OracleGoOracle
- Good Links related OracleGoOracle
- Oracle LOB issueOracle
- django ORM 中 select_related 與 prefetch_related 的使用場景DjangoORM
- LeetCode Flatten Related ProblemsLeetCode
- 170420-css-overflow-relatedCSS
- Mysql連線錯誤:Mysql Host is blocked because of many connection errorsMySqlBloCError
- Flutter Weekly Issue 44Flutter
- rac vip failback issueAI
- Linux locale issueLinux
- FreeMarker boolean IssueBoolean
- Lost connection to MySQL server at 'reading authorization packet'MySqlServer
- Mysql 如何更改default collation_connection settingMySql
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- mysql5.5_2013 Lost connection to Mysql server during queryMySqlServer
- MySQL異常刨析:ata source rejected establishment of connection, message from server: “Too many connectionMySqlServer
- Oracle Performance Top Issue listOracleORM
- 【MySQL】Testing mysql connection and privileges..ERROR 1173 (42000)MySqlError
- Software caused connection abort: socket write error/mysql/tomcatErrorMySqlTomcat
- mysql:max_connection的設定及優化MySql優化
- Tuning I/O-related waitsAI
- onclick="return check()" 和 onclick="check()" 區別