]> git.pld-linux.org Git - packages/percona-server.git/blame - mysqld.conf
- some more options
[packages/percona-server.git] / mysqld.conf
CommitLineData
87a1c582
ER
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$
2ad2f3ce 5
87a1c582 6; This section must be the first!
7ce39a59 7[mysqld]
b6369c60
ER
8datadir = @clusterdir@/mysqldb/db
9pid-file = @clusterdir@/mysqldb/mysql.pid
10socket = @clusterdir@/mysqldb/mysql.sock
2ad2f3ce 11port = 3306
2ad2f3ce 12user = mysql
13
87a1c582
ER
14;character-set-server=latin2
15;collation-server=latin2_general_ci
a9eca139 16;skip-character-set-client-handshake
9051d690 17
f2fc7faf
ER
18; set default charset
19;default-character-set = latin1
20
87a1c582
ER
21; Use passwords compatible with old 4.0 mysqld
22;old-passwords
df187c4e 23
87a1c582 24; Don't use system locking
47fdd7f8 25skip-locking
2ad2f3ce 26
cf4ca076
ER
27; Don't listen on a TCP/IP port at all. This is a security enhancement,
28; if all processes that need to connect to mysqld run on the same host.
29; All interaction with mysqld must be made via Unix sockets.
2ad2f3ce 30skip-networking
31
b23ab87f
ER
32; IP address to bind to
33;bind-address=127.0.0.1
34
f2fc7faf
ER
35; no dns
36;skip-name-resolve
37
87a1c582
ER
38; Emergency option. Use only if you really need this.
39;skip-grant-tables
40
b23ab87f
ER
41; skip startup of slave
42;skip-slave-start
43
f2fc7faf
ER
44; slave setup
45;relay-log=slave-relay-bin
46;master-host=master
47;master-user=replica
48;master-port=3306
49;master-password=replica
50
933080a7
ER
51; master does not ignore them, but we do
52;replicate-ignore-db=mysql
53;replicate-ignore-db=test
54
55;replicate-rewrite-db=delfi->delfi_ro
56
cf4ca076
ER
57; Replication Master Server (default)
58; binary logging is required for replication
59;log-bin=mysql-bin
60
1b68d29f
ER
61; Normally, a slave does not log to its own binary log any updates that are
62; received from a master server. This option tells the slave to log the updates
63; performed by its SQL thread to its own binary log. For this option to have
64; any effect, the slave must also be started with the --log-bin option to
65; enable binary logging. --log-slave-updates is used when you want to chain
66; replication servers.
67;log-slave-updates
68
cf4ca076
ER
69; required unique id between 1 and 2^32 - 1
70; defaults to 1 if master-host is not set but will not function as a master if omitted
71;server-id=2
f2fc7faf
ER
72
73; databases to be included in binlog
74;binlog-do-db=db1
75; or excluded
76;binlog-ignore-db=mysql
77;binlog-ignore-db=test
78
54f9e11d
ER
79; Log slow queries
80;log-slow-queries = /var/log/mysql/slow.log
81
87a1c582
ER
82; Log connections and queries. It slows down MySQL so it's disabled by default
83;log = /var/log/mysql/log
84
7ce39a59 85; Log all updates.
87a1c582
ER
86;log-update = /var/log/mysql/update
87; Log some extra information to update log
88;log-long-format
89
87a1c582
ER
90; Language
91;language = polish
92
d49988e7
ER
93; Path for temporary files. Several paths may be specified, separated by a
94; colon (:), in this case they are used in a round-robin fashion.
95;tmpdir = /var/tmp
96
87a1c582
ER
97;
98; Internal server variables
99;
100
101;set-variable = back_log=5
102;set-variable = connect_timeout=5
103;set-variable = delayed_insert_timeout=300
104;set-variable = delayed_insert_limit=100
105;set-variable = flush_time=0
106;set-variable = join_buffer_size=131072
107;set-variable = key_buffer_size=8M
0037b38d
ER
108;set-variable = read_rnd_buffer_size=256K
109;set-variable = read_buffer_size=132K
87a1c582
ER
110;set-variable = long_query_time=10
111;set-variable = max_allowed_packet=1M
112;set-variable = max_connections=100
113;set-variable = max_user_connections=0
114;set-variable = max_connect_errors=10
115;set-variable = max_delayed_insert_threads=20
116;set-variable = delayed_queue_size=1000
117;set-variable = max_join_size=4294967295
118;set-variable = max_sort_length=1024
119;set-variable = max_write_lock_count=4294967295
120;set-variable = net_buffer_length=16384
121;set-variable = record_buffer=131072
122;set-variable = sort_buffer_size=2M
123;set-variable = table_cache=64
124;set-variable = tmp_table_size=1M
9ee26f23
ER
125;set-variable = max_heap_table_size=32M
126;set-variable = thread_cache_size=16
87a1c582 127;set-variable = thread_stack=65536
9ee26f23
ER
128; Try number of CPU's*2
129;set-variable = thread_concurrency=8
87a1c582 130;set-variable = wait_timeout=28800
28635a24
ER
131;set-variable = query_cache_size=8M
132;set-variable = query_cache_limit=1M
87a1c582 133
9ee26f23
ER
134; replication local log
135;set-variable = max_relay_log_size=256M
136; max size of master binlog files
137;set-variable = max_binlog_size=256M
87a1c582
ER
138
139
140;
141; MyISAM tables options
142;
143
144; Don't flush key buffers between writes for any MyISAM
2530d8da 145; set this if you have dedicated slave server where writes aren't important
87a1c582
ER
146;delay-key-write-for-all-tables
147
148; Repair automatically on open if the table wasn't closed properly.
b0f33e42 149myisam-recover
7ce39a59 150;
87a1c582 151;set-variable = myisam_sort_buffer_size=4M
b0f33e42 152
153
154
87a1c582 155;
7ce39a59 156; InnoDB tables options (see MySQL manual)
87a1c582 157;
7ce39a59 158;skip-innodb
b0f33e42 159
b6369c60
ER
160; these are actual defaults (as of 5.0.26)
161innodb_data_home_dir = @clusterdir@/mysqldb/db
2e4d6989
ER
162innodb_data_file_path = ibdata1:10M:autoextend
163set-variable = innodb_mirrored_log_groups=1
b6369c60 164innodb_log_group_home_dir = @clusterdir@/mysqldb/db
2e4d6989
ER
165set-variable = innodb_log_files_in_group=2
166set-variable = innodb_log_file_size=5M
167set-variable = innodb_log_buffer_size=1M
b0f33e42 168
87a1c582 169;innodb_flush_log_at_trx_commit=1
b6369c60 170;innodb_log_arch_dir = @clusterdir@/innodb/log
87a1c582
ER
171;innodb_log_archive=0
172;set-variable = innodb_buffer_pool_size=80M
173;set-variable = innodb_additional_mem_pool_size=10M
174;set-variable = innodb_file_io_threads=4
175;set-variable = innodb_lock_wait_timeout=50
b0f33e42 176
177
87a1c582
ER
178;
179; Berkeley DB tables options
180;
181; Don't use berkeley db (saves a lot of memory)
182;skip-bdb
b0f33e42 183
b6369c60
ER
184;bdb-home = @clusterdir@/db
185;bdb-log-dir = @clusterdir@/bdb/log
186;bdb-tmpdir = @clusterdir@/bdb/tmp
b0f33e42 187
188
87a1c582 189;bdb-lock-detect = DEFAULT
b0f33e42 190
87a1c582 191; Don't synchronously flush logs.
7ce39a59 192;bdb-no-sync
b0f33e42 193
87a1c582
ER
194; Don't start Berkeley DB in recover mode.
195;bdb-no-recover
b0f33e42 196
7ce39a59 197; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
87a1c582
ER
198; when initializing Berkeley DB
199;bdb-shared-data
b0f33e42 200
7ce39a59 201;set-variable = bdb_max_lock=1000
b0f33e42 202
203
87a1c582 204; used for logs rotation
2ad2f3ce 205[mysqladmin]
7ce39a59
ER
206user = mysql_logrotate
207password =
87a1c582 208
bd0f57c5 209; vim:syn=dosini
This page took 0.116503 seconds and 4 git commands to generate.