]>
Commit | Line | Data |
---|---|---|
e0047254 ER |
1 | # The MySQL server configuration file. |
2 | # vim:ft=mycnf | |
3 | # | |
4 | # One can use all long options that the mysqld supports. | |
5 | # Run mysqld with --help to get a whole list of available options | |
e0047254 ER |
6 | |
7 | # This section must be the first! | |
7ce39a59 | 8 | [mysqld] |
b6369c60 ER |
9 | datadir = @clusterdir@/mysqldb/db |
10 | pid-file = @clusterdir@/mysqldb/mysql.pid | |
11 | socket = @clusterdir@/mysqldb/mysql.sock | |
2ad2f3ce | 12 | port = 3306 |
2ad2f3ce | 13 | user = mysql |
14 | ||
e0047254 ER |
15 | # ssl options |
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 | |
b2e04e84 | 20 | |
e0047254 ER |
21 | #character-set-server=latin2 |
22 | #collation-server=latin2_general_ci | |
23 | #skip-character-set-client-handshake | |
9051d690 | 24 | |
e0047254 ER |
25 | # Use passwords compatible with old 4.0 mysqld |
26 | #old-passwords | |
df187c4e | 27 | |
e0047254 | 28 | # Don't use system locking |
93fb45bd | 29 | skip-external-locking |
2ad2f3ce | 30 | |
b63ba3fa ER |
31 | # Disabling symbolic-links is recommended to prevent assorted security risks |
32 | symbolic-links=0 | |
33 | ||
fb0f1f85 ER |
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 | |
37 | ||
e0047254 ER |
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. | |
2ad2f3ce | 41 | skip-networking |
42 | ||
e0047254 ER |
43 | # IP address to bind to |
44 | #bind-address=127.0.0.1 | |
45 | ||
46 | # no dns | |
47 | #skip-name-resolve | |
48 | ||
49 | # Emergency option. Use only if you really need this. | |
50 | #skip-grant-tables | |
51 | ||
cf48c89c ER |
52 | # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine |
53 | #default-storage-engine=MyISAM | |
54 | ||
e0047254 ER |
55 | # Replication Master Server (default) |
56 | # binary logging is required for replication | |
57 | #log-bin=mysql-bin | |
58 | ||
6350313f ER |
59 | # max size of master binlog files |
60 | #max_binlog_size=256M | |
61 | ||
e0047254 ER |
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. | |
64 | #expire-logs-days=30 | |
65 | ||
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. | |
72 | #log-slave-updates | |
73 | ||
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 | |
76 | #server-id=2 | |
77 | ||
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 | |
83 | ||
84 | # databases to be included in binlog | |
85 | #binlog-do-db=db1 | |
86 | # or excluded | |
87 | #binlog-ignore-db=mysql | |
88 | #binlog-ignore-db=test | |
89 | ||
6350313f ER |
90 | # slave setup |
91 | #relay-log=slave-relay-bin | |
92 | #report-host=db-slave.example.org | |
93 | ||
94 | # skip startup of slave | |
95 | #skip-slave-start | |
96 | ||
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 | |
102 | ||
103 | #replicate-rewrite-db=delfi->delfi_ro | |
104 | ||
105 | # replication local log | |
106 | #max_relay_log_size=256M | |
107 | ||
a08b7d43 | 108 | # https://dev.mysql.com/doc/refman/5.6/en/log-destinations.html |
e75dcc0d | 109 | # global option where logs be written |
a08b7d43 ER |
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 | |
114 | # statements | |
115 | #log-output = TABLE | |
e75dcc0d ER |
116 | log-output = FILE |
117 | ||
e0047254 | 118 | # mysqld error log (stderr) |
b2e04e84 | 119 | log-error = /var/log/mysql/mysqld.log |
2ebc9313 AM |
120 | log-warnings = 2 |
121 | ||
e0047254 | 122 | # Log slow queries |
355e724f | 123 | slow-query-log |
71de8683 | 124 | slow-query-log-file = /var/log/mysql/slow.log |
54f9e11d | 125 | |
e0047254 ER |
126 | # Log connections and queries. It slows down MySQL so it's disabled by default |
127 | #general-log | |
128 | #general-log-file = /var/log/mysql/query.log | |
129 | ||
130 | # Log all updates. | |
131 | #log-update = /var/log/mysql/update | |
132 | # Log some extra information to update log | |
133 | #log-long-format | |
134 | ||
135 | # Language | |
5168dba4 | 136 | #lc-messages = pl_PL |
e0047254 ER |
137 | |
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. | |
140 | #tmpdir = /var/tmp | |
141 | ||
142 | # | |
143 | # Internal server variables | |
144 | # | |
145 | ||
146 | #back_log=5 | |
147 | #connect_timeout=5 | |
148 | #delayed_insert_timeout=300 | |
149 | #delayed_insert_limit=100 | |
150 | #flush_time=0 | |
151 | #join_buffer_size=131072 | |
152 | #key_buffer_size=8M | |
153 | #read_rnd_buffer_size=256K | |
154 | #read_buffer_size=132K | |
155 | #long_query_time=10 | |
156 | #max_allowed_packet=1M | |
157 | #max_connections=100 | |
158 | #max_user_connections=0 | |
159 | #max_connect_errors=10 | |
160 | #max_delayed_threads=20 | |
161 | #delayed_queue_size=1000 | |
162 | #max_join_size=4294967295 | |
163 | #max_sort_length=1024 | |
164 | #max_write_lock_count=4294967295 | |
165 | #net_buffer_length=16384 | |
166 | #record_buffer=131072 | |
167 | #sort_buffer_size=2M | |
168 | #table_cache=64 | |
169 | #tmp_table_size=1M | |
170 | #max_heap_table_size=32M | |
171 | #thread_cache_size=16 | |
172 | #thread_stack=65536 | |
ff47fb37 ER |
173 | # http://www.mysqlperformanceblog.com/2012/06/04/thread_concurrency-doesnt-do-what-you-expect/ |
174 | # thread_concurrency is deprecated, removed in 5.6.1 and works on old Solaris versions < 9 | |
e0047254 ER |
175 | #wait_timeout=28800 |
176 | #query_cache_size=8M | |
177 | #query_cache_limit=1M | |
178 | ||
e0047254 ER |
179 | # Fulltext search options |
180 | #ft_min_word_len=2 | |
181 | ||
182 | # | |
183 | # MyISAM tables options | |
184 | # | |
185 | ||
186 | # Don't flush key buffers between writes for any MyISAM | |
187 | # set this if you have dedicated slave server where writes aren't important | |
188 | #delay-key-write-for-all-tables | |
189 | ||
190 | # Repair automatically on open if the table wasn't closed properly. | |
b0f33e42 | 191 | myisam-recover |
e0047254 ER |
192 | # |
193 | #myisam_sort_buffer_size=4M | |
b0f33e42 | 194 | |
195 | ||
a4232726 ER |
196 | # To completely disable InnoDB, use this option |
197 | # this makes all innodb options being unknown options (including skip-innodb) | |
b99163f9 | 198 | # @deprecated |
a4232726 | 199 | #ignore-builtin-innodb |
b0f33e42 | 200 | |
e0047254 ER |
201 | # |
202 | # InnoDB tables options (see MySQL manual) | |
203 | # | |
204 | #skip-innodb | |
b0f33e42 | 205 | |
4585ac57 ER |
206 | # http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink |
207 | # http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html | |
0c085d64 | 208 | innodb_file_per_table |
4585ac57 | 209 | |
e0047254 | 210 | # these are actual defaults (as of 5.0.26) |
b6369c60 | 211 | innodb_data_home_dir = @clusterdir@/mysqldb/db |
2e4d6989 | 212 | innodb_data_file_path = ibdata1:10M:autoextend |
71080c60 | 213 | innodb_mirrored_log_groups=1 |
b6369c60 | 214 | innodb_log_group_home_dir = @clusterdir@/mysqldb/db |
71080c60 AG |
215 | innodb_log_files_in_group=2 |
216 | innodb_log_file_size=5M | |
217 | innodb_log_buffer_size=1M | |
b0f33e42 | 218 | |
e0047254 ER |
219 | #innodb_flush_log_at_trx_commit=1 |
220 | #innodb_log_arch_dir = @clusterdir@/innodb/log | |
221 | #innodb_log_archive=0 | |
222 | #innodb_buffer_pool_size=80M | |
223 | #innodb_additional_mem_pool_size=10M | |
224 | #innodb_file_io_threads=4 | |
225 | #innodb_lock_wait_timeout=50 | |
b0f33e42 | 226 | |
e0047254 | 227 | # used for logs rotation |
2ad2f3ce | 228 | [mysqladmin] |
1542b54b | 229 | user = mysql_sysadmin |
7ce39a59 | 230 | password = |
ed3eec1b ER |
231 | |
232 | # used by initscript to fetch slave status | |
233 | [mysql] | |
234 | user = mysql | |
235 | password = |