13
Май
0
Mtop — мониторинг MySQL server для CentOS6
Для CentOS 6 64-Bit
Устанавливаем сторонний репозитарий RPMforge # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Импортируем ключ RPMForge для CentOS 6
# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # rpm --import RPM-GPG-KEY.dag.txt Устанавливаем
yum install mtop Подключаемся к серверу MySQL
mysql -u root -p Для mysqltop даем привилегии grant privileges
mysql> grant super, reload, process on *.* to mysqltop;
Query OK, 0 rows affected (0.00 sec)
mysql> grant super, reload, process on *.* to mysqltop@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
Запускаем программу мониторим
mtop
Дополнительные функции
- s – change the number of seconds to delay between updates
- m – toggle manual refresh mode on/off
- d – filter display with regular expression (user/host/db/command/state/info)
- F – fold/unfold column names in select statement display
- h – display process for only one host
- u – display process for only one user
- i – toggle all/non-Sleeping process display
- o – reverse the sort order
- q – quit
- ? – help
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Subscribe to the RSS feed and have all new posts delivered straight to you.