View run status under MySQL command line

Source: Internet
Author: User

To view the running status of MySQL
Use the command line's show statement
Show status is a look at MySQL running, similar to the one seen above through PMA.

Show VARIABLES is a view of MySQL configuration parameters and can also be used similar to show VARIABLES like ' key% '

Show Processlist is a review of the processes currently in progress and is useful for troubleshooting situations such as locking tables. In general, turning on MySQL's slow query record is also useful for troubleshooting.

Show open tables is a list of tables that are currently open.


Use MySQL mysqladmin to view
Use the Mysqladmin tool that comes with MySQL to view status, using the following command
Mysqladmin-uroot-p Password Status

The results shown are as follows:
uptime:502963 threads:2 questions:8561820 Slow queries:734681 opens:553
Tables:1 Open tables:85 Queries per second avg:17.023
You can also add the-I 5 parameter to automatically refresh every five seconds.
Mysqladmin-uroot-p Password Status-i 5

View run status under MySQL command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.