Mysql process View showprocesslist_MySQL

Source: Internet
Author: User
Mysql process View showprocesslist bitsCN.com

Show processlist is used to show which threads are running.

1. for SUPER permission, you can see all the threads;

2. if you are a separate user, you can only view your own thread;

3. if FULL is not applicable, only the first 100 characters of each query are displayed.

4. if a thread is in update or insert a table, the status of the process is updating or sending data.

The most important of this command is the state column. mysql lists the following states:

Checking table

Check data tables

Closing table

Refreshing the modified data in the table to the disk and closing the used table. This is a very fast operation. if not, check whether the disk space is full or the disk is under a heavy load.

Sending Date

Processing the record of the SELECT query and sending the result to the client.

Updating

Searching for matched records and modifying them.

BitsCN.com

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.