Mysql configuration file

Source: Internet
Author: User
[Client] # clients [mysqld] port3306socketvarlibmysqlmysql. sockskip-external-lockingskip-innodb # skip-name-resolve # skip networking # skip-lockingmax_allowed_packe

[Client] # password = your_password port = 3306 socket =/var/lib/mysql. sock [mysqld] port = 3306 socket =/var/lib/mysql. sock skip-external-locking skip-innodb # skip-name-resolve # skip-networking # skip-locking max_allowed_packe


[Client]
# Password = your_password
Port = 3306
Socket =/var/lib/mysql. sock

[Mysqld]
Port = 3306
Socket =/var/lib/mysql. sock

Skip-external-locking
Skip-innodb
# Skip-name-resolve
# Skip-networking
# Skip-locking

Max_allowed_packet = 32 M
Max_connections = 7000
# Max_seeks_for_key = 3000

Key_buffer_size = 512 M
Table_open_cache = 512
Sort_buffer_size = 16 M
Read_buffer_size = 16 M
Join_buffer_size = 32 M
Read_rnd_buffer_size = 32 M

Myisam_sort_buffer_size = 96 M

Thread_cache_size = 32
Query_cache_size = 32 M

Tmp_table_size = 128 M

Wait_timeout = 25
Interactive_timeout = 25

# Try number of CPU's * 2 for thread_concurrency
Thread_concurrency = 8

Slow_query_log = 1
Long_query_time = 10
Slow_query_log_file =/var/log/slowlog. log # skip-networking

# Log-bin = mysql-bin
# Expire_logs_days = 20
Server-id = 1
[Mysqldump]
Quick
Max_allowed_packet = 16 M

[Mysql]
No-auto-rehash
# Remove the next comment character if you are not familiar with SQL
# Safe-updates

[Myisamchk]
Key_buffer_size = 256 M
Sort_buffer_size = 256 M
Read_buffer = 2 M
Write_buffer = 2 M

[Mysqlhotcopy]
Interactive-timeout

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.