MySQLinnodb_monitor and Deadlock Detection

Source: Internet
Author: User

Show innodb status is only a direct display mode, and can only be turned on interactively. It cannot automatically capture information cyclically. innodb status information can be output to the err log library. We recommend that youTestCreate the following table in the database: mysql> create table innodb_monitor (a int) engine = innodb;
Query OK, 0 rows affected (0.09 sec)

Mysql> create table innodb_tablespace_monitor (a int) engine = innodb;
Query OK, 0 rows affected (0.12 sec)

Mysql> create table innodb_lock_monitor (a int) engine = innodb;
Query OK, 0 rows affected (0.13 sec)

Mysql> create table innodb_table_monitor (a int) engine = innodb;
Query OK, 0 rows affected (0.09 sec)

After a table is created, innodb outputs the innodb status informationError logTo stop the monitor function by deleting a table.

  • Innodb_monitor: Actually show engine innodb status \ G

  • Innodb_lock_monitor: similar to innodb_monitor, but there will be

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.