문제

I need to parse the running queries on my MySQL server. What is the easiest way to retrieve the result of SHOW PROCESSLIST from within MySQL Connector for .NET, or using Dapper?

Maybe something like (with Dapper):

var rows = connection.Query("SHOW PROCESSLIST");
도움이 되었습니까?

해결책

The results of most MySQL meta-commands are represented in the INFORMATION_SCHEMA pseudo-database:

SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top