• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Use Mytop (MySQL Database Monitoring)

{{postValue.id}}

To Use Mytop (MySQL Database Monitoring)

This tutorial covers the ground on how to use Mytop. The Mytop is an open source and free monitoring program for MySQL databases, using Perl language and it provides a command-line shell interface to monitor real time MySQL threads, queries per second, process list and performance of databases and gives an idea for the database administrator to optimize the server to handle heavy load.

To Install Mytop

Run the following command to install Mytop and check for RPMForge or EPEL repository under RHEL/CentOS systems.

[root@linuxhelp ~]# yum install mytop
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * rpmforge: mirror1.hs-esslingen.de
 * updates: centos.excellmedia.net
lxcenter-updates                                                                                          | 2.5 kB     00:00     
Resolving Dependencies
.
.
.
Running Transaction
  Installing : mytop-1.7-3.b737f60.el6.noarch                                                                                1/1
  Verifying  : mytop-1.7-3.b737f60.el6.noarch                                                                                1/1

Installed:
  mytop.noarch 0:1.7-3.b737f60.el6                                                                                               

Complete!

Now the installation of Mytop is completed.

To Monitor MySQL using Mytop

Run the following command to start the Mytop shell and provide your root MySQL password when required.

[root@linuxhelp ~]# mytop --prompt
Password:

Once you enter your password, Mytop monitoring shell window appears as below.

mytop

To monitor specific database

Use -d option if you want to monitor specific database.

[root@linuxhelp~]# mytop --prompt -d roundcube
Password:

database

To know more about Mytop application

Run the following command to know more about Mytop application.

# man mytop

Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

How to monitor a specific database using the "mytop" command in Linux?

A

You can use see the syntax to monitor a specific database using the "mytop" command in Linux. Syntax: "mytop -prompt -d "DBname"

Q

How to install "Mytop" on CentOS?

A

You can follow the steps as below, to install the "Mytop" package on CentOS.
Syntax: "yum install epel-release"
"yum install mytop –y"

Q

How to run the "Mytop" command use any specified user privilege?

A

You can use the following syntax to run the "Mytop" command use any specified user privilege. For Syntax: "mytop -u username –p"

Q

How do I know the entire functionality of "mytop" command?

A

You can use the option of "--help" with "mytop" (or) "man" page of "mytop" command to know the entire functionality of "mytop" command. For Ex: "mytop --help" (or) "man mytop".

Q

What is the default configuration file for "mytop" package in Linux?

A

Here I have to mention the default configuration file for "mytop" command. File: "~/.mytop"

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.