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