Optimizing MySQL Server

Source: Internet
Author: User

First, use the show variables and show status commands to view MySQL's server static parameter values and dynamic run state information.

Second, you can use mysqld--verbose--help|more to view the definition of a parameter. Plus grep filtering.

Key_buffer_size the global index cache for the MyISAM engine.

Iv. Table_cache The number of cached database user open tables. You can use Open_tables (the number of currently open tables) to decide the size.

Innodb_buffer_pool_size defines the maximum memory buffer size of the table data and index data for the INNODB storage engine.

Six, Innodb_flush_log_at_trx_commit control the data in the buffer write to the log file and log file data flushing to disk operation time. Impact performance and data security.

The default is 1, which is the safest.

Seven, innodb_additional_mem_pool_size storage data structure and other internal data structure of the memory pool size, will automatically grow, not necessarily too large.

Viii. Innodb_lock_wait_timeout waits for a specified time to roll back when a deadlock occurs.

Ix. Innodb_support_xa supports distributed transactions, supported by default.

Ten, innodb_log_buffer_size log cache size, set the required memory space for one second.

Xi. innodb_log_file_size the size of each day file in a log group.

Optimizing MySQL Server

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.