You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.9 KiB
62 lines
1.9 KiB
## |
|
## my.cnf -- MySQL configuration |
|
## |
|
|
|
[client] |
|
socket = @l_prefix@/var/mysql/mysql.sock |
|
port = 3306 |
|
|
|
[mysqld] |
|
bind-address = 127.0.0.1 |
|
port = 3306 |
|
# logfile destinations (overwrite values of rc.mysql in rc.conf accordingly) |
|
log = @l_prefix@/var/mysql/common.log |
|
log-update = @l_prefix@/var/mysql/update.log |
|
# binary log |
|
# use instead of log-update, server-id must be unique for replication |
|
#log-bin = @l_prefix@/var/mysql/binary.log |
|
#server-id = 1 |
|
|
|
|
|
[mysqld_safe] |
|
datadir = @l_prefix@/var/mysql |
|
socket = @l_prefix@/var/mysql/mysql.sock |
|
set-variable = pid_file=@l_prefix@/var/mysql/mysqld.pid |
|
user = @l_rusr@ |
|
basedir = @l_prefix@ |
|
|
|
# most important tuning parameters for mysqld |
|
set-variable = key_buffer_size=16M |
|
set-variable = table_cache=64 |
|
|
|
# less important tuning parameters (change if special problems occur) |
|
set-variable = join_buffer_size=1M |
|
set-variable = max_connections=1000 |
|
set-variable = max_connect_errors=10 |
|
set-variable = max_delayed_threads=20 |
|
set-variable = max_heap_table_size=16777216 |
|
set-variable = max_sort_length=1024 |
|
# for max_user_connections=0 (unlimited) comment out the following line |
|
set-variable = max_user_connections=1000 |
|
set-variable = record_buffer=131072 |
|
set-variable = record_rnd_buffer=131072 |
|
set-variable = sort_buffer=2M |
|
set-variable = key_buffer=1M |
|
set-variable = tmp_table_size=32M |
|
|
|
# Berkeley DB |
|
set-variable = bdb_cache_size=@l_mysql_bdb_cache_size@ |
|
set-variable = bdb_log_buffer_size=@l_mysql_bdb_log_buffer_size@ |
|
set-variable = bdb_max_lock=@l_mysql_bdb_max_lock@ |
|
|
|
# Innobase |
|
#set-variable = innodb_buffer_pool_size=70M |
|
#set-variable = innodb_additional_mem_pool_size=2M |
|
#set-variable = innodb_log_files_in_group=3 |
|
#set-variable = innodb_log_file_size=20M |
|
#set-variable = innodb_log_buffer_size=8M |
|
#set-variable = innodb_lock_wait_timeout=50 |
|
#innodb_data_home_dir = |
|
#innodb_data_file_path = @innodb_data_file_path@ |
|
#innodb_flush_log_at_trx_commit = 1 |
|
|
|
|