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