1 ; The MySQL server configuration file.
2 ; One can use all long options that the mysqld supports.
3 ; Run mysqld with --help to get a whole list of available options
6 ; This section must be the first!
8 datadir = /var/lib/mysql/mysqldb/db
9 pid-file = /var/lib/mysql/mysqldb/mysql.pid
11 socket = /var/lib/mysql/mysql.sock
14 ;character-set-server=latin2
15 ;collation-server=latin2_general_ci
16 ;skip-character-set-client-handshake
19 ;default-character-set = latin1
21 ; Use passwords compatible with old 4.0 mysqld
24 ; Don't use system locking
27 ; Don't allow connections over the network by default
30 ; IP address to bind to
31 ;bind-address=127.0.0.1
36 ; Emergency option. Use only if you really need this.
42 ; skip startup of slave
46 ;relay-log=slave-relay-bin
50 ;master-password=replica
52 ; master does not ignore them, but we do
53 ;replicate-ignore-db=mysql
54 ;replicate-ignore-db=test
56 ;replicate-rewrite-db=delfi->delfi_ro
61 ; databases to be included in binlog
64 ;binlog-ignore-db=mysql
65 ;binlog-ignore-db=test
67 ; Don't flush key buffers between writes for any MyISAM
68 ; set this if you have dedicated slave server where writes aren't important
69 ;delay-key-write-for-all-tables
71 ; Log connections and queries. It slows down MySQL so it's disabled by default
72 ;log = /var/log/mysql/log
75 ;log-update = /var/log/mysql/update
76 ; Log some extra information to update log
83 ; Internal server variables
86 ;set-variable = back_log=5
87 ;set-variable = connect_timeout=5
88 ;set-variable = delayed_insert_timeout=300
89 ;set-variable = delayed_insert_limit=100
90 ;set-variable = flush_time=0
91 ;set-variable = join_buffer_size=131072
92 ;set-variable = key_buffer_size=8M
93 ;set-variable = long_query_time=10
94 ;set-variable = max_allowed_packet=1M
95 ;set-variable = max_connections=100
96 ;set-variable = max_user_connections=0
97 ;set-variable = max_connect_errors=10
98 ;set-variable = max_delayed_insert_threads=20
99 ;set-variable = delayed_queue_size=1000
100 ;set-variable = max_join_size=4294967295
101 ;set-variable = max_sort_length=1024
102 ;set-variable = max_write_lock_count=4294967295
103 ;set-variable = net_buffer_length=16384
104 ;set-variable = record_buffer=131072
105 ;set-variable = sort_buffer_size=2M
106 ;set-variable = table_cache=64
107 ;set-variable = tmp_table_size=1M
108 ;set-variable = max_heap_table_size=32M
109 ;set-variable = thread_cache_size=16
110 ;set-variable = thread_stack=65536
111 ; Try number of CPU's*2
112 ;set-variable = thread_concurrency=8
113 ;set-variable = wait_timeout=28800
114 ;set-variable = query_cache_size=8M
115 ;set-variable = query_cache_limit=1M
117 ; replication local log
118 ;set-variable = max_relay_log_size=256M
119 ; max size of master binlog files
120 ;set-variable = max_binlog_size=256M
124 ; MyISAM tables options
127 ; Don't flush key buffers between writes for any MyISAM
128 ;delay-key-write-for-all-tables
130 ; Repair automatically on open if the table wasn't closed properly.
133 ;set-variable = myisam_sort_buffer_size=4M
138 ; InnoDB tables options (see MySQL manual)
142 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
143 ;innodb_data_file_path = 00:10M;01:20M
144 ;set-variable = innodb_mirrored_log_groups=1
145 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
146 ;set-variable = innodb_log_files_in_group=3
147 ;set-variable = innodb_log_file_size=30M
148 ;set-variable = innodb_log_buffer_size=8M
150 ;innodb_flush_log_at_trx_commit=1
151 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
152 ;innodb_log_archive=0
153 ;set-variable = innodb_buffer_pool_size=80M
154 ;set-variable = innodb_additional_mem_pool_size=10M
155 ;set-variable = innodb_file_io_threads=4
156 ;set-variable = innodb_lock_wait_timeout=50
160 ; Berkeley DB tables options
162 ; Don't use berkeley db (saves a lot of memory)
165 ;bdb-home = /var/lib/mysql/db
166 ;bdb-log-dir = /var/lib/mysql/bdb/log
167 ;bdb-tmpdir = /var/lib/mysql/bdb/tmp
170 ;bdb-lock-detect = DEFAULT
172 ; Don't synchronously flush logs.
175 ; Don't start Berkeley DB in recover mode.
178 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
179 ; when initializing Berkeley DB
182 ;set-variable = bdb_max_lock=1000
185 ; used for logs rotation
187 user = mysql_logrotate