MySQL Lock monitor

Source: Internet
Author: User

Are you still ashamed to read Ho Dengcheng's lock-processing analysis article?

Still in because of the master of the clerical error, into a deep confusion?

As long as you have more than 5.6.16 version of MySQL, lock monitor you deserve to have!

Quick Start

Open

Set global Innodb_status_output=on;set global innodb_status_output_locks=on;

Real:

Mysql> Show CREATE TABLE My_test1_0\g
1. Row ***************************
Table:my_test1_0
Create table:create Table ' My_test1_0 ' (
' id ' int (one) is not NULL,
' col2 ' int (one) DEFAULT NULL,
' col3 ' varchar (+) DEFAULT NULL,
' col4 ' varchar DEFAULT NULL,
' COL5 ' varchar (+) DEFAULT NULL,
PRIMARY KEY (' id '),
KEY ' idx_col2 ' (' col2 '),
KEY ' Idx_col3_col4 ' (' col3 ', ' col4 ')
) Engine=innodb DEFAULT charset=latin1
1 row in Set (0.08 sec)

INSERT into MY_TEST1_0 (ID) VALUES (1), (2), (3);

Update my_test1_0 set col5= ' Jiji ' where id=1;

View

Show Engine InnoDB Status\g

Everything at a glance.

MySQL Lock monitor

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.