Linux MySQL my.cnf 配置 列表

[client]
#password= your_password
port= 3306
socket= /usr/local/mysql/mysql.sock
default-character-set=utf8 

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
skip-name-resolve
port= 3306
socket= /usr/local/mysql/mysql.sock
datadir= /home/mysql/data
character-set-server=utf8
collation-server=utf8_general_ci
skip-external-locking
key_buffer_size = 8M
max_allowed_packet = 16M
table_open_cache = 2048
#table_definition_cache= 256
sort_buffer_size = 8M
#log-bin=/home/mysql/data/mysql-bin
net_buffer_length = 32K
read_buffer_size = 2M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 4M
binlog_format=mixed

server-id       = 1
event_scheduler=ON
back_log = 50

wait_timeout         = 1800
interactive-timeout  = 1800

#最大连接数
max_connections = 1000
max_connect_errors = 10

binlog_cache_size = 1M
max_heap_table_size = 96M
join_buffer_size = 8M
thread_cache_size = 8
#thread_concurrency = 8
query_cache_size        = 64M
query_cache_limit       = 2M
memlock
default-storage-engine = INNODB
thread_stack = 192K
tmp_table_size = 96M
log_short_format
key_buffer_size = 16M
bulk_insert_buffer_size = 8M
myisam_sort_buffer_size = 32M
binlog-do-db=chinaventure
expire_logs_days=5
log_bin_trust_function_creators = 1
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=performance_schema
expire_logs_days=5
log_bin_trust_function_creators = 1
#innodb_data_file_path=ibdata1:128M;ibdata2:10M:autoextend
innodb_file_per_table=128M

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
skip-name-resolve

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值