MySQL Show Status View Info command

Source: Internet
Author: User


MySQL Performance command:


List the current connections for all users:

> Show processlist; (only the first 100 lines are shown)


> Show full processlist; (Show all connections)



View all MySQL information:

> Show status;



To view the number of processor threads that are using deferred inserts:

> Show status like '%delayed_insert_threads% ';


Maximum number of connections used at the same time:

> Show status like '%max_used_connections% ';



Number of open tables:

> Show status like '%open_tables% ';


Number of rows waiting to be written in the queue:

> Show status like '%not_flushed_delayed_rows% ';


Number of tables already open:

> Show status like '%opened_tables% ';


Number of queries sent to server:

> Show status like '%questions% '


Number of queries over Long_query_time time:

> Show status like '%slow_queries% ';


Number of connections currently open:

> Show status like '%threads_connected% ';


Number of threads not sleeping:

> Show status like '%threads_running% ';


How many seconds the server has worked:

> Show status like '%uptime% ';


View table-level lock contention (the larger the number indicates the more severe the table-level lock contention):

> Show status like '%table_locks_waited% ';



Number currently waiting to be locked:

> Show status like '%innodb_row_lock_current_waits% ';





This article is from the "Linux" blog, so be sure to keep this source http://yangzhiming.blog.51cto.com/4849999/1931812

MySQL Show Status View Info command

Related Article

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.