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