MySQL的生产环境My.cnf配置

该博客主要介绍适用于小型系统的MySQL生产环境配置文件My.cnf的设置,内容涵盖关键参数调整和优化,旨在提升MySQL在Linux环境下的性能。
摘要由CSDN通过智能技术生成

www.kaixinlc.com

# Example MySQL config file for small systems.

#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password    = your_password
port        = 33306
socket        = /mnt/opt/database/mysql5.6.28/data/mysql.sock
default-character-set=utf8
#character-set-client = gbk

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port        = 33306
socket    =/mnt/opt/database/mysql5.6.28/data/mysql.sock
datadir = /mnt/opt/disk/database/mysql5.6.28/data
skip-external-locking
lower_case_table_names=1
character-set-server = utf8

#skip_name_resolve  

#key_buffer_size = 16M
#他人经验值,查询排序时所能使用的缓冲区大小。所以,对于内存在4GB左右的服务器推荐设置为6-8M。  
#sort_buffe
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值