[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
datadir = /db/mysql
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 8M
max_allowed_packet = 128M
sort_buffer_size = 4M
net_buffer_length = 8K
read_buffer_size = 8M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 8M
skip_character_set_client-handshake
#character_set_client=utf8
character_set_server=utf8
collation-server=utf8_unicode_ci
max_connections = 75
max_connect_errors=100
transaction-isolation = READ-COMMITTED
join_buffer_size=16M
query_cache_size=256M
slow-query-log=1
slow-query-log-file=/tmp/slow_queries.log
long_query_time=5
tmp_table_size = 1024M
max_heap_table_size=1024M
table_open_cache=2048
thread_cache_size=256
skip-grant-tables
sql-mode=""
log-bin=mysql-bin
relay-log=mysql-relay-bin
binlog_format=mixed
sync_binlog = 1
binlog-do-db=bitrix
expire_logs_days=7
#for master
server-id = 1
#for slave
#server-id=3
innodb_data_home_dir = /db/mysql
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /db/mysql
innodb_buffer_pool_size = 6600M
innodb_buffer_pool_instances = 4
#innodb_additional_mem_pool_size = 50M
innodb_log_file_size = 1024M
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_lock_wait_timeout = 50
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_file_per_table
[safe_mysqld]
log-error = /var/log/mysql/mysqld.log
socket = /var/lib/mysql/mysql.sock
[mysqldump]
socket = /var/lib/mysql/mysql.sock
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 64M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
log = /var/log/mysqld_multi.log