CentOS 7.x mariadb monitoring

From Notes_Wiki
Revision as of 16:04, 28 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > Databases > MariaDB > CentOS 7.x mariadb monitoring

Monitor queries running on mysql server

During package (eg owncloud, mediawiki, etc.) upgrades to newer versions queries run at backend for long time (sometimes >60 minutes). If during this time we want to check which queries are actually running then connect to mariadb-command line and use query:

  show full processlist;

to see list of currently executing queries and time since which they are executing.

To run it the way watch runs and displays output every few seconds use:

  mysqladmin -u <mysql-username> -p -i 1 processlist


Refer:


Home > CentOS > CentOS 7.x > Databases > MariaDB > CentOS 7.x mariadb monitoring