Skip to content

Support to show the status of a database #640

Description

@LinuxSuRen

Description:

Describe the desired behavior, what scenario it enables and how it
would be used.

[optional Relevant Links:]

Any extra documentation required to understand the issue.

MySQL

Get status via the following SQL:

SELECT *  FROM INFORMATION_SCHEMA.PROCESSLIST;

PostgresDB

SELECT 
  pid,                   -- Process ID
  usename AS username,   -- Connection user
  datname AS database, 
  client_addr AS host, 
  state,                 -- e.g., 'active', 'idle', 'idle in transaction'
  query                  -- Current/last executed query
FROM pg_stat_activity;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions