]> git.pld-linux.org Git - packages/mysql.git/blob - mysqld.conf
- mention innodb_file_per_table
[packages/mysql.git] / mysqld.conf
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!
9 [mysqld]
10 datadir     = @clusterdir@/mysqldb/db
11 pid-file    = @clusterdir@/mysqldb/mysql.pid
12 socket      = @clusterdir@/mysqldb/mysql.sock
13 port        = 3306
14 user        = mysql
15
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
21
22 #character-set-server=latin2
23 #collation-server=latin2_general_ci
24 #skip-character-set-client-handshake
25
26 # set default charset
27 #default-character-set = latin1
28
29 # Use passwords compatible with old 4.0 mysqld
30 #old-passwords
31
32 # Don't use system locking
33 skip-locking
34
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.
38 skip-networking
39
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
49 # http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-storage-engine
50 #default-storage-engine=MyISAM
51
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
101 # mysqld error log (stderr)
102 log-error = /var/log/mysql/mysqld.log
103 log-warnings = 2
104
105 # Log slow queries
106 log-slow-queries = /var/log/mysql/slow.log
107
108 # Log connections and queries. It slows down MySQL so it's disabled by default
109 #log = /var/log/mysql/query.log
110
111 # Log all updates.
112 #log-update = /var/log/mysql/update
113 # Log some extra information to update log
114 #log-long-format
115
116 # Language
117 #language   = polish
118
119 # Path for temporary files. Several paths may be specified, separated by a
120 # colon (:), in this case they are used in a round-robin fashion.
121 #tmpdir      = /var/tmp
122
123 #
124 # Internal server variables
125 #
126
127 #back_log=5
128 #connect_timeout=5
129 #delayed_insert_timeout=300
130 #delayed_insert_limit=100
131 #flush_time=0
132 #join_buffer_size=131072
133 #key_buffer_size=8M
134 #read_rnd_buffer_size=256K
135 #read_buffer_size=132K
136 #long_query_time=10
137 #max_allowed_packet=1M
138 #max_connections=100
139 #max_user_connections=0
140 #max_connect_errors=10
141 #max_delayed_insert_threads=20
142 #delayed_queue_size=1000
143 #max_join_size=4294967295
144 #max_sort_length=1024
145 #max_write_lock_count=4294967295
146 #net_buffer_length=16384
147 #record_buffer=131072
148 #sort_buffer_size=2M
149 #table_cache=64
150 #tmp_table_size=1M
151 #max_heap_table_size=32M
152 #thread_cache_size=16
153 #thread_stack=65536
154 # Try number of CPU's*2
155 #thread_concurrency=8
156 #wait_timeout=28800
157 #query_cache_size=8M
158 #query_cache_limit=1M
159
160 # replication local log
161 #max_relay_log_size=256M
162 # max size of master binlog files
163 #max_binlog_size=256M
164
165 # Fulltext search options
166 #ft_min_word_len=2
167
168 #
169 # MyISAM tables options
170 #
171
172 # Don't flush key buffers between writes for any MyISAM
173 # set this if you have dedicated slave server where writes aren't important
174 #delay-key-write-for-all-tables
175
176 # Repair automatically on open if the table wasn't closed properly.
177 myisam-recover
178 #
179 #myisam_sort_buffer_size=4M
180
181
182
183 #
184 # InnoDB tables options (see MySQL manual)
185 #
186 #skip-innodb
187
188 # http://stackoverflow.com/questions/2646373/mysql-data-file-wont-shrink
189 # http://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html
190 #innodb_file_per_table
191
192 # these are actual defaults (as of 5.0.26)
193 innodb_data_home_dir = @clusterdir@/mysqldb/db
194 innodb_data_file_path = ibdata1:10M:autoextend
195 innodb_mirrored_log_groups=1
196 innodb_log_group_home_dir = @clusterdir@/mysqldb/db
197 innodb_log_files_in_group=2
198 innodb_log_file_size=5M
199 innodb_log_buffer_size=1M
200
201 #innodb_flush_log_at_trx_commit=1
202 #innodb_log_arch_dir = @clusterdir@/innodb/log
203 #innodb_log_archive=0
204 #innodb_buffer_pool_size=80M
205 #innodb_additional_mem_pool_size=10M
206 #innodb_file_io_threads=4
207 #innodb_lock_wait_timeout=50
208
209
210 #
211 # Berkeley DB tables options
212 #
213 # Don't use berkeley db (saves a lot of memory)
214 #skip-bdb
215
216 #bdb-home          =  @clusterdir@/db
217 #bdb-log-dir       =  @clusterdir@/bdb/log
218 #bdb-tmpdir        =  @clusterdir@/bdb/tmp
219
220
221 #bdb-lock-detect   =  DEFAULT
222
223 # Don't synchronously flush logs.
224 #bdb-no-sync
225
226 # Don't start Berkeley DB in recover mode.
227 #bdb-no-recover
228
229 # Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
230 # when initializing Berkeley DB
231 #bdb-shared-data
232
233 #set-variable      = bdb_max_lock=1000
234
235
236 # used for logs rotation
237 [mysqladmin]
238 user        = mysql_sysadmin
239 password    =
This page took 0.063137 seconds and 4 git commands to generate.