# The following options will be passed to all MySQL clients
[client]
port = 3306
socket = /srv/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
skip-locking
port = 3306
datadir = /srv/mysql/var
socket = /srv/mysql/mysql.sock
tmpdir = /srv/tmp
default_storage_engine = innodb
max_connections = 500
thread_cache = 500
#thread_concurrency = 8 # Solaris only
table_cache = 400
binlog_cache_size = 1M # This is per thread and only used for masters, 1M seems to be plenty
max_allowed_packet = 16M
net_buffer_length = 16M
# Query Buffers
join_buffer_size = 32M # Used for joins that do not use indexes
max_heap_table_size = 64M # This only applies to MEMORY tables, but bugs indicate it's tied to disk tmp tables
record_buffer = 32M
sort_buffer_size = 16M
tmp_table_size = 32M
# MyISAM Specific Buffers
bulk_insert_buffer_size = 16M
key_buffer = 128M # Allocated as needed, also used for disk tmp tables, main myisam buffer
preload_buffer_size = 16M # Size of indexes to preload into key buffer
read_buffer_size = 2M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 2M # Only used during index building
# InnoDB Vars
# http://dev.mysql.com/doc/refman/5.0/en/innodb-parameters.html
innodb
innodb_buffer_pool_size = 256M # Allocated at init, main innodb buffer
innodb_file_per_table # Tables are stored in separate files
innodb_log_buffer_size = 64M
innodb_log_file_size = 1G # ib_logfile{0...} size
innodb_support_xa = 0 # No need for XA transactions
innodb_flush_method = O_DIRECT
innodb_data_home_dir = /export/LUN1/mysql/innodb
innodb_log_group_home_dir = /export/LUN1/mysql/innodb
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_files_in_group = 2 # ib_logfile{0,1}
innodb_thread_concurrency = 4 # http://bugs.mysql.com/bug.php?id=15815
# Query Caching - 0 == disable, only used for deterministic queries, not used for SSPs
query_cache_size = 50M
query_cache_type = 1 # Cache unless told otherwise
query_cache_limit = 2M # Max size for any one query
# Query logs
#log = /export/LUN1/mysql/logs/general_query.log
log-slow-queries = /export/LUN1/mysql/logs/slow_query.log
long_query_time = 1
# http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html
log-bin = /export/LUN1/mysql/binlog/master
server-id = 1 # master is 1
# http://dev.mysql.com/doc/refman/5.0/en/replication-options.html
#read-only
# Commented out slave bits
#relay-log = /export/LUN1/mysql/binlog/master-relay-bin
#relay-log-index = /export/LUN1/mysql/binlog/master-relay-bin.index
#report-host = imamaster
#slave_compressed_protocol = 0
#slave-load-tmpdir = /export/LUN2/tmp
#log-slave-updates # enable to binlog slave writes
# Uncomment this to prevent mysql from resuming replication on startup.
skip-slave-start
# DANGEROUS
#slave-skip-errors = ALL
# http://dev.mysql.com/doc/refman/5.0/en/replication-faq.html
#low-priority-updates
# Can cause several minute shutdowns and flush tables, must run myisamchk on crash!!
delay-key-write = ALL
# http://dev.mysql.com/doc/refman/5.0/en/dns.html
skip-name-resolve
# http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
sync_binlog = 0
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer =
sort_buffer_size = 256M
read_buffer = 16M
write_buffer = 16M
tmpdir = /export/LUN2/tmp
[mysqlhotcopy]
interactive-timeout