mysql查询进程.导入数据包大小设置 zoerywzhou@163.com http://www.cnblogs.com/swje/ 作者:Zhouwan 2017-12-27 查询正在执行的进程: 进入mysql,show processlist; mysql> show processlist;+-----+------+-----------------+------+---------+------+----------+------------------+| Id | User |
需求:windows系统上 根据进程名称查询进程,如果有进程就输出 up ,没有就输出 donw. ::Final interpretation is owned by chenglee ::@echo off<nul 3>nul @echo off&title Checking For SystemProcess, Thankyou... :2 color 0E wmic process get name | findStr /i "chat*" ::if n
用于存放常用SQL --查询主键在哪一列 --设置页大小 --设置行大小 col COLUMN_NAME for a20 --设置字段显示长度 col TABLE_NAME for a20 col OWNER for a20 col CONSTRAINT_NAME for a20 select cons.owner,cons.constraint_name,cons.table_name,cons.column_name from all_cons_columns cons,all_constr
查使用内存最多的5个进程:ps aux | head -1 && ps aux | grep -v USER | sort -nr -k 4 | head -5 查使用CPU最多的5个进程: ps aux | head -1 && ps aux | grep -v USER | sort -nr -k 3 | head -5 查询僵尸进程ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]'ps -ef | grep defunct | g