1 # The MySQL server configuration file.
4 # One can use all long options that the mysqld supports.
5 # Run mysqld with --help to get a whole list of available options
7 # This section must be the first!
9 datadir = @clusterdir@/mysqldb/db
10 pid-file = @clusterdir@/mysqldb/mysql.pid
11 socket = @clusterdir@/mysqldb/mysql.sock
16 #ssl-ca = /etc/ssl/certs/mysql/ca-cert.pem
17 #ssl-cert = /etc/ssl/certs/mysql/server-cert.pem
18 #ssl-key = /etc/ssl/certs/mysql/server-key.pem
19 #ssl-cipher = DHE-RSA-AES256-SHA
21 #character-set-server=latin2
22 #collation-server=latin2_general_ci
23 #skip-character-set-client-handshake
25 # Use passwords compatible with old 4.0 mysqld
28 # Don't use system locking
31 # Disabling symbolic-links is recommended to prevent assorted security risks
34 # Default storage engine is InnoDB since 5.5.5
35 # You may revert to previous behaviour by specifiying MyISAM here
36 #default-storage-engine=InnoDB
38 # Don't listen on a TCP/IP port at all. This is a security enhancement,
39 # if all processes that need to connect to mysqld run on the same host.
40 # All interaction with mysqld must be made via Unix sockets.
43 # IP address to bind to
44 #bind-address=127.0.0.1
49 # Emergency option. Use only if you really need this.
52 # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine
53 #default-storage-engine=MyISAM
55 # Replication Master Server (default)
56 # binary logging is required for replication
59 # max size of master binlog files
62 # If non-zero, binary logs will be purged after expire_logs_days days; possible
63 # purges happen at startup and at binary log rotation.
66 # Normally, a slave does not log to its own binary log any updates that are
67 # received from a master server. This option tells the slave to log the updates
68 # performed by its SQL thread to its own binary log. For this option to have
69 # any effect, the slave must also be started with the --log-bin option to
70 # enable binary logging. --log-slave-updates is used when you want to chain
71 # replication servers.
74 # required unique id between 1 and 2^32 - 1
75 # defaults to 1 if master-host is not set but will not function as a master if omitted
78 # To set up N master servers, set the variables like this:
79 # Set auto_increment_increment to N on each master.
80 # Set each of the N masters to have a different auto_increment_offset, using the values 1, 2, ..., N
81 #auto-increment-offset=1
82 #auto-increment-increment=2
84 # databases to be included in binlog
87 #binlog-ignore-db=mysql
88 #binlog-ignore-db=test
91 #relay-log=slave-relay-bin
92 #report-host=db-slave.example.org
94 # skip startup of slave
97 # master does not ignore them, but we do
98 #replicate-ignore-db=mysql
99 #replicate-ignore-db=test
100 #replicate-ignore-table=db1.tbl1
101 #replicate-ignore-table=db2.tbl2
103 #replicate-rewrite-db=delfi->delfi_ro
105 # replication local log
106 #max_relay_log_size=256M
108 # https://dev.mysql.com/doc/refman/5.6/en/log-destinations.html
109 # global option where logs be written
110 # affects slow-query-log, general-log direcives
111 # Possible values: FILE, TABLE
112 # NOTE: when using table, you can switch to MyISAM, but the contents is still
113 # not replicated, also mysqldump will not dump data, only create table
118 # mysqld error log (stderr)
119 log-error = /var/log/mysql/mysqld.log
124 slow-query-log_file = /var/log/mysql/slow.log
126 # Log connections and queries. It slows down MySQL so it's disabled by default
128 #general-log-file = /var/log/mysql/query.log
131 #log-update = /var/log/mysql/update
132 # Log some extra information to update log
138 # Path for temporary files. Several paths may be specified, separated by a
139 # colon (:), in this case they are used in a round-robin fashion.
143 # Internal server variables
146 explicit_defaults_for_timestamp = true
149 #delayed_insert_timeout=300
150 #delayed_insert_limit=100
152 #join_buffer_size=131072
154 #read_rnd_buffer_size=256K
155 #read_buffer_size=132K
157 #max_allowed_packet=1M
159 #max_user_connections=0
160 #max_connect_errors=10
161 #max_delayed_threads=20
162 #delayed_queue_size=1000
163 #max_join_size=4294967295
164 #max_sort_length=1024
165 #max_write_lock_count=4294967295
166 #net_buffer_length=16384
167 #record_buffer=131072
171 #max_heap_table_size=32M
172 #thread_cache_size=16
174 # Try number of CPU's*2
175 #thread_concurrency=8
178 #query_cache_limit=1M
180 # Fulltext search options
183 # Turn off nonstandard TIMESTAMP behaviors
184 # http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp
185 explicit_defaults_for_timestamp = true
188 # MyISAM tables options
191 # Don't flush key buffers between writes for any MyISAM
192 # set this if you have dedicated slave server where writes aren't important
193 #delay-key-write-for-all-tables
195 # Repair automatically on open if the table wasn't closed properly.
198 #myisam_sort_buffer_size=4M
201 # To completely disable InnoDB, use this option
202 # this makes all innodb options being unknown options (including skip-innodb)
204 #ignore-builtin-innodb
207 # InnoDB tables options (see MySQL manual)
211 # http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink
212 # http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html
213 innodb_file_per_table
215 # these are actual defaults (as of 5.0.26)
216 innodb_data_home_dir = @clusterdir@/mysqldb/db
217 innodb_data_file_path = ibdata1:10M:autoextend
218 innodb_mirrored_log_groups=1
219 innodb_log_group_home_dir = @clusterdir@/mysqldb/db
220 innodb_log_files_in_group=2
221 innodb_log_file_size=5M
222 innodb_log_buffer_size=1M
224 #innodb_flush_log_at_trx_commit=1
225 #innodb_log_arch_dir = @clusterdir@/innodb/log
226 #innodb_log_archive=0
227 #innodb_buffer_pool_size=80M
228 #innodb_additional_mem_pool_size=10M
229 #innodb_file_io_threads=4
230 #innodb_lock_wait_timeout=50
232 # used for logs rotation
234 user = mysql_sysadmin
237 # used by initscript to fetch slave status