Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Parsing of mysql performance commands

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces mysql performance command parsing, hoping to supplement and update some knowledge, if you have other questions you need to know, you can continue to follow my updated article in the industry information.

Mysql performance commands:

List the current connections for all users:

> show processlist; (only the first 100 lines are displayed)

Show full processlist; (show all connections)

View all mysql information:

> show status

Check the number of processor threads that are being inserted with latency:

> 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 queue:

> show status like'% not_flushed_delayed_rows%'

Number of tables that have been opened:

> show status like'% opened_tables%'

Number of queries sent to CVM:

> show status like'% questions%'

Number of queries that exceeded long_query_time time:

> show status like'% slow_queries%'

Number of connections currently open:

> show status like'% threads_connected%'

Number of threads that are not sleeping:

> show status like'% threads_running%'

How many seconds did the server work:

> show status like'% uptime%'

Check the table-level lock contention (the higher the value, the more serious the table-level lock contention):

> show status like'% table_locks_waited%'

Number of locks currently waiting:

> show status like'% innodb_row_lock_current_waits%'

Read the above about mysql performance command parsing, I hope it can bring some help to everyone in practical application. Due to the limited space in this article, it is inevitable that there will be deficiencies and need to be supplemented. If you need more professional answers, you can contact us on the official website for 24-hour pre-sales and after-sales to help you answer questions at any time.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report