]> git.pld-linux.org Git - packages/percona-server.git/blob - mysqld.conf
ab45e6db9c0433b7553b00958a561e5b3e4bb909
[packages/percona-server.git] / mysqld.conf
1 ; The MySQL server configuration file.
2 ; One can use all long options that the mysqld supports.
3 ; Run mysqld with --help to get a whole list of available options
4 ; $Id$
5
6 ; This section must be the first!
7 [mysqld]
8 datadir     = /var/lib/mysql/mysqldb/db
9 pid-file    = /var/lib/mysql/mysqldb/mysql.pid
10 port        = 3306
11 socket      = /var/lib/mysql/mysql.sock
12 user        = mysql
13
14 ;character-set-server=latin2
15 ;collation-server=latin2_general_ci
16 ;skip-character-set-client-handshake
17
18 ; set default charset
19 ;default-character-set = latin1
20
21 ; Use passwords compatible with old 4.0 mysqld
22 ;old-passwords
23
24 ; Don't use system locking
25 skip-locking
26
27 ; Don't allow connections over the network by default
28 skip-networking
29
30 ; IP address to bind to
31 ;bind-address=127.0.0.1
32
33 ; no dns
34 ;skip-name-resolve
35
36 ; Emergency option. Use only if you really need this.
37 ;skip-grant-tables
38
39 ; replication options
40 ;server-id=2
41
42 ; skip startup of slave
43 ;skip-slave-start
44
45 ; slave setup
46 ;relay-log=slave-relay-bin
47 ;master-host=master
48 ;master-user=replica
49 ;master-port=3306
50 ;master-password=replica
51
52 ; master does not ignore them, but we do
53 ;replicate-ignore-db=mysql
54 ;replicate-ignore-db=test
55
56 ;replicate-rewrite-db=delfi->delfi_ro
57
58 ; master setup
59 ;log-bin=binlog
60
61 ; databases to be included in binlog
62 ;binlog-do-db=db1
63 ; or excluded
64 ;binlog-ignore-db=mysql
65 ;binlog-ignore-db=test
66
67 ; Don't flush key buffers between writes for any MyISAM
68 ; set this if you have dedicated slave server where writes aren't important
69 ;delay-key-write-for-all-tables
70
71 ; Log slow queries
72 ;log-slow-queries = /var/log/mysql/slow.log
73
74 ; Log connections and queries. It slows down MySQL so it's disabled by default
75 ;log        = /var/log/mysql/log
76
77 ; Log all updates.
78 ;log-update = /var/log/mysql/update
79 ; Log some extra information to update log
80 ;log-long-format
81
82 ; Language
83 ;language   = polish
84
85 ; Path for temporary files. Several paths may be specified, separated by a
86 ; colon (:), in this case they are used in a round-robin fashion.
87 ;tmpdir      = /var/tmp
88
89 ;
90 ; Internal server variables
91 ;
92
93 ;set-variable = back_log=5
94 ;set-variable = connect_timeout=5
95 ;set-variable = delayed_insert_timeout=300
96 ;set-variable = delayed_insert_limit=100
97 ;set-variable = flush_time=0
98 ;set-variable = join_buffer_size=131072
99 ;set-variable = key_buffer_size=8M
100 ;set-variable = long_query_time=10
101 ;set-variable = max_allowed_packet=1M
102 ;set-variable = max_connections=100
103 ;set-variable = max_user_connections=0
104 ;set-variable = max_connect_errors=10
105 ;set-variable = max_delayed_insert_threads=20
106 ;set-variable = delayed_queue_size=1000
107 ;set-variable = max_join_size=4294967295
108 ;set-variable = max_sort_length=1024
109 ;set-variable = max_write_lock_count=4294967295
110 ;set-variable = net_buffer_length=16384
111 ;set-variable = record_buffer=131072
112 ;set-variable = sort_buffer_size=2M
113 ;set-variable = table_cache=64
114 ;set-variable = tmp_table_size=1M
115 ;set-variable = max_heap_table_size=32M
116 ;set-variable = thread_cache_size=16
117 ;set-variable = thread_stack=65536
118 ; Try number of CPU's*2
119 ;set-variable = thread_concurrency=8
120 ;set-variable = wait_timeout=28800
121 ;set-variable = query_cache_size=8M
122 ;set-variable = query_cache_limit=1M
123
124 ; replication local log
125 ;set-variable = max_relay_log_size=256M
126 ; max size of master binlog files
127 ;set-variable = max_binlog_size=256M
128
129
130 ;
131 ; MyISAM tables options
132 ;
133
134 ; Don't flush key buffers between writes for any MyISAM
135 ;delay-key-write-for-all-tables
136
137 ; Repair automatically on open if the table wasn't closed properly.
138 myisam-recover
139 ;
140 ;set-variable = myisam_sort_buffer_size=4M
141
142
143
144 ;
145 ; InnoDB tables options (see MySQL manual)
146 ;
147 ;skip-innodb
148
149 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
150 ;innodb_data_file_path = 00:10M;01:20M
151 ;set-variable = innodb_mirrored_log_groups=1
152 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
153 ;set-variable = innodb_log_files_in_group=3
154 ;set-variable = innodb_log_file_size=30M
155 ;set-variable = innodb_log_buffer_size=8M
156
157 ;innodb_flush_log_at_trx_commit=1
158 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
159 ;innodb_log_archive=0
160 ;set-variable = innodb_buffer_pool_size=80M
161 ;set-variable = innodb_additional_mem_pool_size=10M
162 ;set-variable = innodb_file_io_threads=4
163 ;set-variable = innodb_lock_wait_timeout=50
164
165
166 ;
167 ; Berkeley DB tables options
168 ;
169 ; Don't use berkeley db (saves a lot of memory)
170 ;skip-bdb
171
172 ;bdb-home          =  /var/lib/mysql/db
173 ;bdb-log-dir       =  /var/lib/mysql/bdb/log
174 ;bdb-tmpdir        =  /var/lib/mysql/bdb/tmp
175
176
177 ;bdb-lock-detect   =  DEFAULT
178
179 ; Don't synchronously flush logs.
180 ;bdb-no-sync
181
182 ; Don't start Berkeley DB in recover mode.
183 ;bdb-no-recover
184
185 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
186 ; when initializing Berkeley DB
187 ;bdb-shared-data
188
189 ;set-variable      = bdb_max_lock=1000
190
191
192 ; used for logs rotation
193 [mysqladmin]
194 user        = mysql_logrotate
195 password    =
196
197 ; vim:syn=dosini
This page took 0.032664 seconds and 3 git commands to generate.