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