MySQL Optimization in Linux

Source: Internet
Author: User
Requirements: MySQL Database Management and Maintenance 1. Familiar with the installation, configuration and optimization of MySQL Databases on Linux, 2. Familiar with the implementation of Mysql AB replication and read/write splitting, can complete

Requirements: MySQL Database Management and Maintenance 1. Familiar with the installation, configuration and optimization of MySQL Databases on Linux, 2. Familiar with the implementation of Mysql AB replication and read/write splitting, can complete

Requirements: MySQL Database Management and Maintenance

1. Familiar with installing, configuring, and optimizing MySQL Databases on Linux,

2. Familiar with Mysql AB replication and read/write splitting, and can complete operations such as adding slave database and changing slave database to master database;

3. proficient in mysql database queries, subqueries, inserts, updates, and other operations, as well as database creation, tables, and indexes;

4. Master the table connections and views for the use of stored procedures and functions;

5. mysql database backup and restoration, and various engines are optimized;

========================================================== ==========

1. Optimize the MySQL database:

# Vim/etc/my. cnf.
Read_buffer_size = 4 M
#
Tmp_table_size = 256 M
Max_connections = 768

Thread_concurrency = 8
Skip-networking

Innodb_additional_mem_pool_size = 4 M
Innodb_log_buffer_size = 2 M
Key_buffer_size = 256 M

Read_buffer_size = 4 M
Read_rnd_buffer_size = 16 M
Sort_buffer_size = 32 M
Thread _ cache_size = 120
Query_cache_size = 32 M


It is worth noting that:

In many cases, specific analysis is required.

1. If Key_reads is too large, increase Key_buffer_size in my. cnf to keep Key_reads/Key_read_requests above 1/100. The smaller the value, the better.
2. If Qcache_lowmem_prunes is large, you need to increase the value of Query_cache_size.

-------------------------------------- Split line --------------------------------------

Install MySQL in Ubuntu 14.04

MySQL authoritative guide (original book version 2nd) Clear Chinese scan PDF

Ubuntu 14.04 LTS install LNMP Nginx \ PHP5 (PHP-FPM) \ MySQL

Build a MySQL Master/Slave server in Ubuntu 14.04

Build a highly available distributed MySQL cluster using Ubuntu 12.04 LTS

Install MySQL5.6 and Python-MySQLdb in the source code of Ubuntu 12.04

MySQL-5.5.38 universal binary Installation

-------------------------------------- Split line --------------------------------------

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.