Forrest logo
tool overview
On this page you find all important commands for the CLI tool mytop. If the command you are looking for is missing please ask our AI.

mytop

mytop is a command line tool that provides real-time monitoring and statistics for MySQL database servers. It allows you to monitor the queries that are being executed on the server, track the performance of the server, and check the overall health of your MySQL environment.

  1. Initially released in 2000, mytop is written in Perl and utilizes the Perl DBI module to connect to the MySQL server.
  2. It provides an interactive interface where you can view various details such as the number of queries per second, top running queries, process list, and table locks.
  3. The tool displays important server statistics like the number of threads connected, number of slow queries, uptime, and server load.
  4. It also shows information about the MySQL command currently being executed, its execution time, and the number of rows affected.
  5. With mytop, you can sort the queries based on different criteria such as CPU usage, execution time, or number of rows examined.
  6. It supports various keyboard shortcuts to perform actions like killing a query, refreshing the display, and toggling the display of specific columns.
  7. By default, mytop refreshes the display every five seconds, but you can adjust this interval as per your preference.
  8. It allows you to specify multiple MySQL servers and easily switch between them within the same session.
  9. Password-protected MySQL server connections are also supported by mytop, ensuring secure access to your database.
  10. mytop is highly regarded for its simplicity, ease of use, and ability to provide a quick overview of the MySQL server's performance at a glance.

List of commands for mytop:

  • mytop:tldr:2d28b mytop: Connect with a specified username and password.
    $ mytop -u ${user} -p ${password}
    try on your machine
    explain this command
  • mytop:tldr:38e59 mytop: Start mytop.
    $ mytop
    try on your machine
    explain this command
  • mytop:tldr:435ec mytop: Do not show any idle (sleeping) threads.
    $ mytop -u ${user} -p ${password} --noidle
    try on your machine
    explain this command
  • mytop:tldr:a81ea mytop: Connect with a specified username (the user will be prompted for a password).
    $ mytop -u ${user} --prompt
    try on your machine
    explain this command
tool overview