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
8 # This section must be the first!
10 datadir = @clusterdir@/mysqldb/db
11 pid-file = @clusterdir@/mysqldb/mysql.pid
12 socket = @clusterdir@/mysqldb/mysql.sock
17 #ssl-ca = /etc/ssl/certs/mysql/ca-cert.pem
18 #ssl-cert = /etc/ssl/certs/mysql/server-cert.pem
19 #ssl-key = /etc/ssl/certs/mysql/server-key.pem
20 #ssl-cipher = DHE-RSA-AES256-SHA
22 #character-set-server=latin2
23 #collation-server=latin2_general_ci
24 #skip-character-set-client-handshake
26 # Use passwords compatible with old 4.0 mysqld
29 # Don't use system locking
32 # Disabling symbolic-links is recommended to prevent assorted security risks
35 # Default storage engine is InnoDB since 5.5.5
36 # You may revert to previous behaviour by specifiying MyISAM here
37 #default-storage-engine=InnoDB
39 # Don't listen on a TCP/IP port at all. This is a security enhancement,
40 # if all processes that need to connect to mysqld run on the same host.
41 # All interaction with mysqld must be made via Unix sockets.
44 # IP address to bind to
45 #bind-address=127.0.0.1
50 # Emergency option. Use only if you really need this.
53 # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine
54 #default-storage-engine=MyISAM
56 # skip startup of slave
60 #relay-log=slave-relay-bin
61 #report-host=db-slave.example.org
63 # master does not ignore them, but we do
64 #replicate-ignore-db=mysql
65 #replicate-ignore-db=test
66 #replicate-ignore-table=db1.tbl1
67 #replicate-ignore-table=db2.tbl2
69 #replicate-rewrite-db=delfi->delfi_ro
71 # Replication Master Server (default)
72 # binary logging is required for replication
75 # If non-zero, binary logs will be purged after expire_logs_days days; possible
76 # purges happen at startup and at binary log rotation.
79 # Normally, a slave does not log to its own binary log any updates that are
80 # received from a master server. This option tells the slave to log the updates
81 # performed by its SQL thread to its own binary log. For this option to have
82 # any effect, the slave must also be started with the --log-bin option to
83 # enable binary logging. --log-slave-updates is used when you want to chain
84 # replication servers.
87 # required unique id between 1 and 2^32 - 1
88 # defaults to 1 if master-host is not set but will not function as a master if omitted
91 # To set up N master servers, set the variables like this:
92 # Set auto_increment_increment to N on each master.
93 # Set each of the N masters to have a different auto_increment_offset, using the values 1, 2, ..., N
94 #auto-increment-offset=1
95 #auto-increment-increment=2
97 # databases to be included in binlog
100 #binlog-ignore-db=mysql
101 #binlog-ignore-db=test
103 # global option where logs be written
106 # mysqld error log (stderr)
107 log-error = /var/log/mysql/mysqld.log
112 slow-query-log_file = /var/log/mysql/slow.log
114 # Log connections and queries. It slows down MySQL so it's disabled by default
116 #general-log-file = /var/log/mysql/query.log
119 #log-update = /var/log/mysql/update
120 # Log some extra information to update log
126 # Path for temporary files. Several paths may be specified, separated by a
127 # colon (:), in this case they are used in a round-robin fashion.
131 # Internal server variables
136 #delayed_insert_timeout=300
137 #delayed_insert_limit=100
139 #join_buffer_size=131072
141 #read_rnd_buffer_size=256K
142 #read_buffer_size=132K
144 #max_allowed_packet=1M
146 #max_user_connections=0
147 #max_connect_errors=10
148 #max_delayed_threads=20
149 #delayed_queue_size=1000
150 #max_join_size=4294967295
151 #max_sort_length=1024
152 #max_write_lock_count=4294967295
153 #net_buffer_length=16384
154 #record_buffer=131072
158 #max_heap_table_size=32M
159 #thread_cache_size=16
161 # Try number of CPU's*2
162 #thread_concurrency=8
165 #query_cache_limit=1M
167 # replication local log
168 #max_relay_log_size=256M
169 # max size of master binlog files
170 #max_binlog_size=256M
172 # Fulltext search options
176 # MyISAM tables options
179 # Don't flush key buffers between writes for any MyISAM
180 # set this if you have dedicated slave server where writes aren't important
181 #delay-key-write-for-all-tables
183 # Repair automatically on open if the table wasn't closed properly.
186 #myisam_sort_buffer_size=4M
189 # To completely disable InnoDB, use this option
190 # this makes all innodb options being unknown options (including skip-innodb)
191 #ignore-builtin-innodb
194 # InnoDB tables options (see MySQL manual)
198 # http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink
199 # http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html
200 #innodb_file_per_table
202 # these are actual defaults (as of 5.0.26)
203 innodb_data_home_dir = @clusterdir@/mysqldb/db
204 innodb_data_file_path = ibdata1:10M:autoextend
205 innodb_mirrored_log_groups=1
206 innodb_log_group_home_dir = @clusterdir@/mysqldb/db
207 innodb_log_files_in_group=2
208 innodb_log_file_size=5M
209 innodb_log_buffer_size=1M
211 #innodb_flush_log_at_trx_commit=1
212 #innodb_log_arch_dir = @clusterdir@/innodb/log
213 #innodb_log_archive=0
214 #innodb_buffer_pool_size=80M
215 #innodb_additional_mem_pool_size=10M
216 #innodb_file_io_threads=4
217 #innodb_lock_wait_timeout=50
219 # used for logs rotation
221 user = mysql_sysadmin