Check connection issue of Mysql #show connection configuration show variables like '%max_con
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
--结束END--
本文标题: Check connection related issue of mysql
本文链接: https://www.lsjlt.com/news/46530.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-26
2024-04-24
2024-04-24
2024-04-24
2024-04-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0