MySQL parameter configuration optimization

Source: Internet
Author: User

1 data files and binary log files are guaranteed to be stored on separate disks to protect against disk failures

2 Set the InnoDB engine on, Default-storage-engine=innodb

3 Set the Innodb_file_per_tablecan parameter so that each INNODB table uses a separate IBD file

4 Set Flexible tablespace Innodb_data_home_dir =/home/mysql/data Innodb_data_file_path

5 set innodb_log_file_size size to 512M; not less than 256M

6 set Innodb_open_files to 1000; not less than 500

7 set Thread_cache_size to 500; not less than 200

8 Set Innodb_buffer_pool_size size 50G, generally guaranteed not less than 25% of physical memory, no higher than 75%

9 Setting Max_connection 5000

10 Setting Max_connection_error 100000

11 Setting Open_files_limit 50000

12 Setting Table_open_cache 50000

13 Setting Table_definition_cache 50000

14 set the Skip_name_resolve parameter to force the use of IP to connect to the database

15 Set close Query cache query_cache_size=0;query_cache_type=0




This article is from the "Practical Linux knowledge and Skills sharing" blog, please be sure to keep this source http://superleedo.blog.51cto.com/12164670/1892232

MySQL parameter configuration optimization

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.