[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

 

Logo

更多推荐