MySQL Configuration explained

Source: Internet
Author: User
Tags log log

[Email protected] ~]# vim/etc/my.cnf #mysql的配置文件

[Mysqld]port = 3306 socket =/tmp/mysql.sock skip-locking key_buffer_size = 16kmax_allowed_packet = 1mtable_open_cache = 4sort_buffer_size = 64kread_buffer_size = 256Kread_rnd_buffer_size = 256Kne T_buffer_length = 2kthread_stack = 128K

MySQL Tuning

Long_query_time = 1 two parameters for slow query, logging in more than one second

Log_slow_queries =/data/mysql/slow.log Log Address



This article is from "Linux rookie" blog, please be sure to keep this source http://490617581.blog.51cto.com/11186315/1758769

MySQL Configuration explained

Related Article

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.