[root@push-5-221 scripts]# mysql -S /var/lib/mysql/3306/mysql.sock -uroot -phlsms_push_Zaq1xsw@ -e "show processlist;"|awk '{print $5}'|awk 'BEGIN{print "sleep Excute"}{if($NF=="Sleep"){sleeps+=1}}{if($NF=="Execute"){excs+=1}}END{print sleeps,excs}'
sleep Excute
mysql: [Warning] Using a password on the command line interface can be insecure.
24 5
[root@push-5-221 scripts]# 

 

相关文章:

  • 2022-01-07
  • 2021-11-23
  • 2021-12-07
  • 2021-07-25
  • 2021-11-23
  • 2022-02-16
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2021-08-07
  • 2021-05-20
  • 2021-11-14
  • 2021-08-31
  • 2021-06-09
相关资源
相似解决方案