]>
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 | |
11bbf664 ER |
25 | # This variable controls the password hashing method used by the PASSWORD() |
26 | # function. It also influences password hashing performed by CREATE USER and | |
27 | # GRANT statements that specify a password using an IDENTIFIED BY clause. | |
28 | # http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_old_passwords | |
29 | # Value | Password Hashing Method | Associated Authentication Plugin | |
30 | # 0 | MySQL 4.1 native hashing | mysql_native_password | |
31 | # 1 | Pre-4.1 ("old") hashing | mysql_old_password | |
32 | # 2 | SHA-256 hashing | sha256_password | |
33 | # If you set old_passwords=2, follow the instructions for using the sha256_password plugin at | |
34 | # http://dev.mysql.com/doc/refman/5.6/en/sha256-authentication-plugin.html | |
35 | #old-passwords=0 | |
df187c4e | 36 | |
e0047254 | 37 | # Don't use system locking |
93fb45bd | 38 | skip-external-locking |
2ad2f3ce | 39 | |
b63ba3fa ER |
40 | # Disabling symbolic-links is recommended to prevent assorted security risks |
41 | symbolic-links=0 | |
42 | ||
fb0f1f85 ER |
43 | # Default storage engine is InnoDB since 5.5.5 |
44 | # You may revert to previous behaviour by specifiying MyISAM here | |
45 | #default-storage-engine=InnoDB | |
46 | ||
e0047254 ER |
47 | # Don't listen on a TCP/IP port at all. This is a security enhancement, |
48 | # if all processes that need to connect to mysqld run on the same host. | |
49 | # All interaction with mysqld must be made via Unix sockets. | |
2ad2f3ce | 50 | skip-networking |
51 | ||
e0047254 ER |
52 | # IP address to bind to |
53 | #bind-address=127.0.0.1 | |
54 | ||
55 | # no dns | |
56 | #skip-name-resolve | |
57 | ||
58 | # Emergency option. Use only if you really need this. | |
59 | #skip-grant-tables | |
60 | ||
cf48c89c ER |
61 | # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine |
62 | #default-storage-engine=MyISAM | |
63 | ||
e0047254 ER |
64 | # Replication Master Server (default) |
65 | # binary logging is required for replication | |
66 | #log-bin=mysql-bin | |
67 | ||
6350313f ER |
68 | # max size of master binlog files |
69 | #max_binlog_size=256M | |
70 | ||
e0047254 ER |
71 | # If non-zero, binary logs will be purged after expire_logs_days days; possible |
72 | # purges happen at startup and at binary log rotation. | |
73 | #expire-logs-days=30 | |
74 | ||
75 | # Normally, a slave does not log to its own binary log any updates that are | |
76 | # received from a master server. This option tells the slave to log the updates | |
77 | # performed by its SQL thread to its own binary log. For this option to have | |
78 | # any effect, the slave must also be started with the --log-bin option to | |
79 | # enable binary logging. --log-slave-updates is used when you want to chain | |
80 | # replication servers. | |
81 | #log-slave-updates | |
82 | ||
83 | # required unique id between 1 and 2^32 - 1 | |
84 | # defaults to 1 if master-host is not set but will not function as a master if omitted | |
85 | #server-id=2 | |
86 | ||
87 | # To set up N master servers, set the variables like this: | |
88 | # Set auto_increment_increment to N on each master. | |
89 | # Set each of the N masters to have a different auto_increment_offset, using the values 1, 2, ..., N | |
90 | #auto-increment-offset=1 | |
91 | #auto-increment-increment=2 | |
92 | ||
93 | # databases to be included in binlog | |
94 | #binlog-do-db=db1 | |
95 | # or excluded | |
96 | #binlog-ignore-db=mysql | |
97 | #binlog-ignore-db=test | |
98 | ||
6350313f ER |
99 | # slave setup |
100 | #relay-log=slave-relay-bin | |
101 | #report-host=db-slave.example.org | |
102 | ||
103 | # skip startup of slave | |
104 | #skip-slave-start | |
105 | ||
106 | # master does not ignore them, but we do | |
107 | #replicate-ignore-db=mysql | |
108 | #replicate-ignore-db=test | |
109 | #replicate-ignore-table=db1.tbl1 | |
110 | #replicate-ignore-table=db2.tbl2 | |
111 | ||
112 | #replicate-rewrite-db=delfi->delfi_ro | |
113 | ||
114 | # replication local log | |
115 | #max_relay_log_size=256M | |
116 | ||
a08b7d43 | 117 | # https://dev.mysql.com/doc/refman/5.6/en/log-destinations.html |
e75dcc0d | 118 | # global option where logs be written |
a08b7d43 ER |
119 | # affects slow-query-log, general-log direcives |
120 | # Possible values: FILE, TABLE | |
121 | # NOTE: when using table, you can switch to MyISAM, but the contents is still | |
122 | # not replicated, also mysqldump will not dump data, only create table | |
123 | # statements | |
124 | #log-output = TABLE | |
e75dcc0d ER |
125 | log-output = FILE |
126 | ||
e0047254 | 127 | # mysqld error log (stderr) |
b2e04e84 | 128 | log-error = /var/log/mysql/mysqld.log |
874af6de | 129 | log-error-verbosity = 2 |
2ebc9313 | 130 | |
e0047254 | 131 | # Log slow queries |
355e724f | 132 | slow-query-log |
71de8683 | 133 | slow-query-log-file = /var/log/mysql/slow.log |
54f9e11d | 134 | |
e0047254 ER |
135 | # Log connections and queries. It slows down MySQL so it's disabled by default |
136 | #general-log | |
137 | #general-log-file = /var/log/mysql/query.log | |
138 | ||
139 | # Log all updates. | |
140 | #log-update = /var/log/mysql/update | |
141 | # Log some extra information to update log | |
142 | #log-long-format | |
143 | ||
144 | # Language | |
5168dba4 | 145 | #lc-messages = pl_PL |
e0047254 ER |
146 | |
147 | # Path for temporary files. Several paths may be specified, separated by a | |
148 | # colon (:), in this case they are used in a round-robin fashion. | |
149 | #tmpdir = /var/tmp | |
150 | ||
151 | # | |
152 | # Internal server variables | |
153 | # | |
154 | ||
155 | #back_log=5 | |
156 | #connect_timeout=5 | |
157 | #delayed_insert_timeout=300 | |
158 | #delayed_insert_limit=100 | |
159 | #flush_time=0 | |
160 | #join_buffer_size=131072 | |
161 | #key_buffer_size=8M | |
162 | #read_rnd_buffer_size=256K | |
163 | #read_buffer_size=132K | |
164 | #long_query_time=10 | |
165 | #max_allowed_packet=1M | |
166 | #max_connections=100 | |
167 | #max_user_connections=0 | |
168 | #max_connect_errors=10 | |
169 | #max_delayed_threads=20 | |
170 | #delayed_queue_size=1000 | |
171 | #max_join_size=4294967295 | |
172 | #max_sort_length=1024 | |
173 | #max_write_lock_count=4294967295 | |
174 | #net_buffer_length=16384 | |
175 | #record_buffer=131072 | |
176 | #sort_buffer_size=2M | |
177 | #table_cache=64 | |
178 | #tmp_table_size=1M | |
179 | #max_heap_table_size=32M | |
180 | #thread_cache_size=16 | |
181 | #thread_stack=65536 | |
ff47fb37 ER |
182 | # http://www.mysqlperformanceblog.com/2012/06/04/thread_concurrency-doesnt-do-what-you-expect/ |
183 | # thread_concurrency is deprecated, removed in 5.6.1 and works on old Solaris versions < 9 | |
e0047254 ER |
184 | #wait_timeout=28800 |
185 | #query_cache_size=8M | |
186 | #query_cache_limit=1M | |
187 | ||
e0047254 ER |
188 | # Fulltext search options |
189 | #ft_min_word_len=2 | |
190 | ||
191 | # | |
192 | # MyISAM tables options | |
193 | # | |
194 | ||
195 | # Don't flush key buffers between writes for any MyISAM | |
196 | # set this if you have dedicated slave server where writes aren't important | |
197 | #delay-key-write-for-all-tables | |
198 | ||
199 | # Repair automatically on open if the table wasn't closed properly. | |
874af6de | 200 | myisam-recover-options |
e0047254 ER |
201 | # |
202 | #myisam_sort_buffer_size=4M | |
b0f33e42 | 203 | |
204 | ||
a4232726 ER |
205 | # To completely disable InnoDB, use this option |
206 | # this makes all innodb options being unknown options (including skip-innodb) | |
b99163f9 | 207 | # @deprecated |
a4232726 | 208 | #ignore-builtin-innodb |
b0f33e42 | 209 | |
e0047254 ER |
210 | # |
211 | # InnoDB tables options (see MySQL manual) | |
212 | # | |
213 | #skip-innodb | |
b0f33e42 | 214 | |
4585ac57 ER |
215 | # http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink |
216 | # http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html | |
0c085d64 | 217 | innodb_file_per_table |
4585ac57 | 218 | |
e0047254 | 219 | # these are actual defaults (as of 5.0.26) |
b6369c60 | 220 | innodb_data_home_dir = @clusterdir@/mysqldb/db |
b6369c60 | 221 | innodb_log_group_home_dir = @clusterdir@/mysqldb/db |
71080c60 | 222 | innodb_log_files_in_group=2 |
b0f33e42 | 223 | |
e0047254 ER |
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 | |
b0f33e42 | 231 | |
0cb1ff50 ER |
232 | # used for logs rotation or status check for replications |
233 | [client] | |
1542b54b | 234 | user = mysql_sysadmin |
7ce39a59 | 235 | password = |