Difference between revisions of "CentOS 7.x mariadb monitoring"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="mariadb monitoring">CentOS_7.x_mariadb|CentOS 7.x mariadb</yambe:breadcrumb> =CentOS 7.x mariadb monitoring= ==Monitor queries running on mysql server...") |
(No difference)
|
Revision as of 12:09, 2 April 2019
<yambe:breadcrumb self="mariadb monitoring">CentOS_7.x_mariadb|CentOS 7.x mariadb</yambe:breadcrumb>
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: