{"id":2725,"date":"2015-10-03T19:16:06","date_gmt":"2015-10-03T19:16:06","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2725"},"modified":"2015-10-03T19:16:06","modified_gmt":"2015-10-03T19:16:06","slug":"install-mtop-on-centos-6","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/10\/03\/install-mtop-on-centos-6\/","title":{"rendered":"Install mtop on centos 6"},"content":{"rendered":"<p>Install RPMForge on CentOS 6<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# wget http:\/\/packages.sw.be\/rpmforge-release\/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm\n# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm\n<\/pre>\n<p>Import RPMForge Repository Key in CentOS 6<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# wget http:\/\/dag.wieers.com\/rpm\/packages\/RPM-GPG-KEY.dag.txt\n# rpm --import RPM-GPG-KEY.dag.txt\n\n<\/pre>\n<p>Install Mtop in CentOS 6<\/p>\n<p>Once you\u2019ve installed and enabled RPMForge repository, let\u2019s install MTOP using following YUM command.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum install mtop\n\n<\/pre>\n<p>To start Mtop program, you need to connect to your MySQL Server, using following command.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# mysql -u root -p\n\n<\/pre>\n<p>Then you need to create separate user called mysqltop and grant privileges to him under your MySQL server. To do, this just run the following commands in mysql shell.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nmysql&gt; grant super, reload, process on *.* to mysqltop;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; grant super, reload, process on *.* to mysqltop@localhost;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; flush privileges;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; quit;\nBye\n\n<\/pre>\n<p>Let\u2019s start the Mtop program.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# mtop\n\n<\/pre>\n<p>Sample Output:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nload average: 0.03, 0.06, 0.08 mysqld 5.5.44-cll-lve up 4 day(s), 19:08 hrs\n12 threads: 1 running, 0 cached. Queries\/slow: 5\/0 Cache Hit: 100.00%\nOpened tables: 0  RRN: 332  TLW: 1  SFJ: 0  SMP: 0  QPS: 0\n\nID       USER     HOST             DB           TIME   COMMAND STATE        INFO\n39965    mysqltop localhost                            Query                show full processlist\n\n<\/pre>\n<p>Monitor Remote MySQL Server using Mtop<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# mtop  \u2013host=remotehost \u2013dbuser=username \u2013password=password \u2013seconds=1\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install RPMForge on CentOS 6 # 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 Import RPMForge Repository Key in CentOS 6 # wget http:\/\/dag.wieers.com\/rpm\/packages\/RPM-GPG-KEY.dag.txt # rpm &#8211;import RPM-GPG-KEY.dag.txt Install Mtop in CentOS 6 Once you\u2019ve installed and enabled RPMForge repository, let\u2019s install MTOP using following YUM command. # yum install mtop To start Mtop program, you need &#8230; <a title=\"Install mtop on centos 6\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/10\/03\/install-mtop-on-centos-6\/\" aria-label=\"Read more about Install mtop on centos 6\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,70],"tags":[],"class_list":["post-2725","post","type-post","status-publish","format-standard","hentry","category-administration","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2725"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2725\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}