如果直接在show processlist 后面加where是会报错的,需要通过MYSQL自带的数据库information_schema查询:
select * from information_schema p where p.user="用户名"
where 后面条件自定义。
如果直接在show processlist 后面加where是会报错的,需要通过MYSQL自带的数据库information_schema查询:
select * from information_schema p where p.user="用户名"
where 后面条件自定义。