The reasonable configuration suggestion of open_table configuration parameters for Mysql performance optimization _mysql

Source: Internet
Author: User

In the MySQL database, Opened_tables represents the number of open tables, the following is a detailed description of the reasonable configuration of the MySQL open_table.

MySQL Opened_tables represents the number of open tables, and the following will teach you how to reasonably configure the values of MySQL open_table, and I hope it will help you learn the MySQL database.

MySQL open_table Situation:

Copy Code code as follows:

Mysql> show global status like ' open%tables% ';
+---------------+-------+
| variable_name | Value |
+---------------+-------+
| Open_tables | 919 |
| Opened_tables | 1951 |
+---------------+-------+

The MySQL open_tables represents the number of open tables, and if the number of MySQL opened_tables is too large, the value of Table_cache in the configuration (called Table_open_cache after 5.1.3) may be too small, Let's check the server Table_cache values:
Copy Code code as follows:

Mysql> Show variables like ' Table_cache ';
+---------------+-------+
| variable_name | Value |
+---------------+-------+
| Table_cache | 2048 |
+---------------+-------+

MySQL open_table more appropriate values are:
Copy Code code as follows:

Open_tables/opened_tables * 100% >= 85%
Open_tables/table_cache * 100%

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.