Mysql 调优配置

[client]
port   = 3306
socket = /tmp/mysql/mysql.sock

[mysqld]
user       = nobody
port       = 3307
socket     = /tmp/mysql/mysql.sock
datadir    = /usr/local/mysql/data
pid-file   = /tmp/mysql/mysqld.pid
log_error  = /tmp/logs/mysql_error.log
server-id  = 1

#skip-innodb
bind-address            = 0.0.0.0
key_buffer              = 16M
max_allowed_packet      = 2048M
table_open_cache        = 64
sort_buffer_size        = 512K
net_buffer_length       = 8K
read_buffer_size        = 256K
read_rnd_buffer_size    = 512K
myisam_sort_buffer_size = 8M
skip-external-locking
default-storage-engine=InnoDB
ignore-builtin-innodb
plugin-load=innodb=ha_innodb_plugin.so
plugin_dir=/usr/lib64/mysql/plugin


[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer       = 20M
sort_buffer_size = 20M
read_buffer      = 2M
write_buffer     = 2M

[myisamchk]
key_buffer       = 20M
sort_buffer_size = 20M
read_buffer      = 2M
write_buffer     = 2M

[mysqlhotcopy]
interactive-timeout

 

你可能感兴趣的:(中间件部署)