深圳全飞鸿

标题: 数据库报警too many connections [打印本页]

作者: zhgc    时间: 2019-10-16 23:34
标题: 数据库报警too many connections

用户反馈:



解决方法:
select   sfc.str_split_td(host,'',':'),count(1) from information_schema.PROCESSLIST
group by
sfc.str_split_td(host,'',':') order by count(1) desc





select concat('kill ',id,';') from information_schema.PROCESSLIST  where host  like '192.168.6.148%'
and time>1000


长期对策:
1. 尽快收回root帐号
2. 尽快所有程序加上session管理






欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2