mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 09:45:59 +00:00
fix: use full process list and info for operaiton in mysql server summary
This commit is contained in:
@@ -210,12 +210,12 @@ const drivers = driverBases.map(driverBase => ({
|
|||||||
},
|
},
|
||||||
|
|
||||||
async listProcesses(dbhan) {
|
async listProcesses(dbhan) {
|
||||||
const { rows } = await this.query(dbhan, 'SHOW PROCESSLIST');
|
const { rows } = await this.query(dbhan, 'SHOW FULL PROCESSLIST');
|
||||||
return rows.map(row => ({
|
return rows.map(row => ({
|
||||||
processId: row.Id,
|
processId: row.Id,
|
||||||
connectionId: null,
|
connectionId: null,
|
||||||
client: row.Host,
|
client: row.Host,
|
||||||
operation: row.Command,
|
operation: row.Info,
|
||||||
namespace: row.Database,
|
namespace: row.Database,
|
||||||
runningTime: row.Time,
|
runningTime: row.Time,
|
||||||
state: row.State,
|
state: row.State,
|
||||||
|
|||||||
Reference in New Issue
Block a user