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 = @clusterdir@/mysqldb/db
9 pid-file = @clusterdir@/mysqldb/mysql.pid
10 socket = @clusterdir@/mysqldb/mysql.sock
15 ;ssl-ca = /etc/ssl/certs/mysql/ca-cert.pem
16 ;ssl-cert = /etc/ssl/certs/mysql/server-cert.pem
17 ;ssl-key = /etc/ssl/certs/mysql/server-key.pem
18 ;ssl-cipher = DHE-RSA-AES256-SHA
20 ;character-set-server=latin2
21 ;collation-server=latin2_general_ci
22 ;skip-character-set-client-handshake
25 ;default-character-set = latin1
27 ; Use passwords compatible with old 4.0 mysqld
30 ; Don't use system locking
33 ; Don't listen on a TCP/IP port at all. This is a security enhancement,
34 ; if all processes that need to connect to mysqld run on the same host.
35 ; All interaction with mysqld must be made via Unix sockets.
38 ; IP address to bind to
39 ;bind-address=127.0.0.1
44 ; Emergency option. Use only if you really need this.
47 ; skip startup of slave
51 ;relay-log=slave-relay-bin
55 ;master-password=replica
56 ;report-host=db-slave.example.org
58 ; master does not ignore them, but we do
59 ;replicate-ignore-db=mysql
60 ;replicate-ignore-db=test
62 ;replicate-rewrite-db=delfi->delfi_ro
64 ; Replication Master Server (default)
65 ; binary logging is required for replication
68 ; If non-zero, binary logs will be purged after expire_logs_days days; possible
69 ; purges happen at startup and at binary log rotation.
72 ; Normally, a slave does not log to its own binary log any updates that are
73 ; received from a master server. This option tells the slave to log the updates
74 ; performed by its SQL thread to its own binary log. For this option to have
75 ; any effect, the slave must also be started with the --log-bin option to
76 ; enable binary logging. --log-slave-updates is used when you want to chain
77 ; replication servers.
80 ; required unique id between 1 and 2^32 - 1
81 ; defaults to 1 if master-host is not set but will not function as a master if omitted
84 ; To set up N master servers, set the variables like this:
85 ; Set auto_increment_increment to N on each master.
86 ; Set each of the N masters to have a different auto_increment_offset, using the values 1, 2, ..., N
87 ;auto-increment-offset=1
88 ;auto-increment-increment=2
90 ; databases to be included in binlog
93 ;binlog-ignore-db=mysql
94 ;binlog-ignore-db=test
96 ; mysqld error log (stderr)
97 log-error = /var/log/mysql/mysqld.log
101 log-slow-queries = /var/log/mysql/slow.log
103 ; Log connections and queries. It slows down MySQL so it's disabled by default
104 ;log = /var/log/mysql/query.log
107 ;log-update = /var/log/mysql/update
108 ; Log some extra information to update log
114 ; Path for temporary files. Several paths may be specified, separated by a
115 ; colon (:), in this case they are used in a round-robin fashion.
119 ; Internal server variables
122 ;set-variable = back_log=5
123 ;set-variable = connect_timeout=5
124 ;set-variable = delayed_insert_timeout=300
125 ;set-variable = delayed_insert_limit=100
126 ;set-variable = flush_time=0
127 ;set-variable = join_buffer_size=131072
128 ;set-variable = key_buffer_size=8M
129 ;set-variable = read_rnd_buffer_size=256K
130 ;set-variable = read_buffer_size=132K
131 ;set-variable = long_query_time=10
132 ;set-variable = max_allowed_packet=1M
133 ;set-variable = max_connections=100
134 ;set-variable = max_user_connections=0
135 ;set-variable = max_connect_errors=10
136 ;set-variable = max_delayed_insert_threads=20
137 ;set-variable = delayed_queue_size=1000
138 ;set-variable = max_join_size=4294967295
139 ;set-variable = max_sort_length=1024
140 ;set-variable = max_write_lock_count=4294967295
141 ;set-variable = net_buffer_length=16384
142 ;set-variable = record_buffer=131072
143 ;set-variable = sort_buffer_size=2M
144 ;set-variable = table_cache=64
145 ;set-variable = tmp_table_size=1M
146 ;set-variable = max_heap_table_size=32M
147 ;set-variable = thread_cache_size=16
148 ;set-variable = thread_stack=65536
149 ; Try number of CPU's*2
150 ;set-variable = thread_concurrency=8
151 ;set-variable = wait_timeout=28800
152 ;set-variable = query_cache_size=8M
153 ;set-variable = query_cache_limit=1M
155 ; replication local log
156 ;set-variable = max_relay_log_size=256M
157 ; max size of master binlog files
158 ;set-variable = max_binlog_size=256M
160 ; Fulltext search options
164 ; MyISAM tables options
167 ; Don't flush key buffers between writes for any MyISAM
168 ; set this if you have dedicated slave server where writes aren't important
169 ;delay-key-write-for-all-tables
171 ; Repair automatically on open if the table wasn't closed properly.
174 ;set-variable = myisam_sort_buffer_size=4M
179 ; InnoDB tables options (see MySQL manual)
183 ; these are actual defaults (as of 5.0.26)
184 innodb_data_home_dir = @clusterdir@/mysqldb/db
185 innodb_data_file_path = ibdata1:10M:autoextend
186 set-variable = innodb_mirrored_log_groups=1
187 innodb_log_group_home_dir = @clusterdir@/mysqldb/db
188 set-variable = innodb_log_files_in_group=2
189 set-variable = innodb_log_file_size=5M
190 set-variable = innodb_log_buffer_size=1M
192 ;innodb_flush_log_at_trx_commit=1
193 ;innodb_log_arch_dir = @clusterdir@/innodb/log
194 ;innodb_log_archive=0
195 ;set-variable = innodb_buffer_pool_size=80M
196 ;set-variable = innodb_additional_mem_pool_size=10M
197 ;set-variable = innodb_file_io_threads=4
198 ;set-variable = innodb_lock_wait_timeout=50
202 ; Berkeley DB tables options
204 ; Don't use berkeley db (saves a lot of memory)
207 ;bdb-home = @clusterdir@/db
208 ;bdb-log-dir = @clusterdir@/bdb/log
209 ;bdb-tmpdir = @clusterdir@/bdb/tmp
212 ;bdb-lock-detect = DEFAULT
214 ; Don't synchronously flush logs.
217 ; Don't start Berkeley DB in recover mode.
220 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
221 ; when initializing Berkeley DB
224 ;set-variable = bdb_max_lock=1000
227 ; used for logs rotation
229 user = mysql_sysadmin