]> git.pld-linux.org Git - packages/percona-server.git/blame - mysqld.conf
- cleanup error logging procedure, errors log rotated now by logrotate by the unix...
[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
1987aec7 46;report-host=db-slave.example.org
f2fc7faf 47
933080a7
ER
48; master does not ignore them, but we do
49;replicate-ignore-db=mysql
50;replicate-ignore-db=test
51
52;replicate-rewrite-db=delfi->delfi_ro
53
cf4ca076
ER
54; Replication Master Server (default)
55; binary logging is required for replication
56;log-bin=mysql-bin
57
1b68d29f
ER
58; Normally, a slave does not log to its own binary log any updates that are
59; received from a master server. This option tells the slave to log the updates
60; performed by its SQL thread to its own binary log. For this option to have
61; any effect, the slave must also be started with the --log-bin option to
62; enable binary logging. --log-slave-updates is used when you want to chain
63; replication servers.
64;log-slave-updates
65
cf4ca076
ER
66; required unique id between 1 and 2^32 - 1
67; defaults to 1 if master-host is not set but will not function as a master if omitted
68;server-id=2
f2fc7faf
ER
69
70; databases to be included in binlog
71;binlog-do-db=db1
72; or excluded
73;binlog-ignore-db=mysql
74;binlog-ignore-db=test
75
2ebc9313 76; Log Errors
6f11a098 77log-error = /var/log/mysql/error
2ebc9313
AM
78log-warnings = 2
79
54f9e11d 80; Log slow queries
2ebc9313 81log-slow-queries = /var/log/mysql/slow.log
ead3eab7 82log-output = FILE
54f9e11d 83
87a1c582
ER
84; Log connections and queries. It slows down MySQL so it's disabled by default
85;log = /var/log/mysql/log
86
7ce39a59 87; Log all updates.
87a1c582
ER
88;log-update = /var/log/mysql/update
89; Log some extra information to update log
90;log-long-format
91
87a1c582
ER
92; Language
93;language = polish
94
d49988e7
ER
95; Path for temporary files. Several paths may be specified, separated by a
96; colon (:), in this case they are used in a round-robin fashion.
97;tmpdir = /var/tmp
98
87a1c582
ER
99;
100; Internal server variables
101;
102
103;set-variable = back_log=5
104;set-variable = connect_timeout=5
105;set-variable = delayed_insert_timeout=300
106;set-variable = delayed_insert_limit=100
107;set-variable = flush_time=0
108;set-variable = join_buffer_size=131072
109;set-variable = key_buffer_size=8M
0037b38d
ER
110;set-variable = read_rnd_buffer_size=256K
111;set-variable = read_buffer_size=132K
87a1c582
ER
112;set-variable = long_query_time=10
113;set-variable = max_allowed_packet=1M
114;set-variable = max_connections=100
115;set-variable = max_user_connections=0
116;set-variable = max_connect_errors=10
117;set-variable = max_delayed_insert_threads=20
118;set-variable = delayed_queue_size=1000
119;set-variable = max_join_size=4294967295
120;set-variable = max_sort_length=1024
121;set-variable = max_write_lock_count=4294967295
122;set-variable = net_buffer_length=16384
123;set-variable = record_buffer=131072
124;set-variable = sort_buffer_size=2M
125;set-variable = table_cache=64
126;set-variable = tmp_table_size=1M
9ee26f23
ER
127;set-variable = max_heap_table_size=32M
128;set-variable = thread_cache_size=16
87a1c582 129;set-variable = thread_stack=65536
9ee26f23
ER
130; Try number of CPU's*2
131;set-variable = thread_concurrency=8
87a1c582 132;set-variable = wait_timeout=28800
28635a24
ER
133;set-variable = query_cache_size=8M
134;set-variable = query_cache_limit=1M
87a1c582 135
9ee26f23
ER
136; replication local log
137;set-variable = max_relay_log_size=256M
138; max size of master binlog files
139;set-variable = max_binlog_size=256M
87a1c582 140
1983bfb8
ER
141; Fulltext search options
142;ft_min_word_len=2
87a1c582
ER
143
144;
145; MyISAM tables options
146;
147
148; Don't flush key buffers between writes for any MyISAM
2530d8da 149; set this if you have dedicated slave server where writes aren't important
87a1c582
ER
150;delay-key-write-for-all-tables
151
152; Repair automatically on open if the table wasn't closed properly.
b0f33e42 153myisam-recover
7ce39a59 154;
87a1c582 155;set-variable = myisam_sort_buffer_size=4M
b0f33e42 156
157
158
87a1c582 159;
7ce39a59 160; InnoDB tables options (see MySQL manual)
87a1c582 161;
7ce39a59 162;skip-innodb
b0f33e42 163
b6369c60
ER
164; these are actual defaults (as of 5.0.26)
165innodb_data_home_dir = @clusterdir@/mysqldb/db
2e4d6989
ER
166innodb_data_file_path = ibdata1:10M:autoextend
167set-variable = innodb_mirrored_log_groups=1
b6369c60 168innodb_log_group_home_dir = @clusterdir@/mysqldb/db
2e4d6989
ER
169set-variable = innodb_log_files_in_group=2
170set-variable = innodb_log_file_size=5M
171set-variable = innodb_log_buffer_size=1M
b0f33e42 172
87a1c582 173;innodb_flush_log_at_trx_commit=1
b6369c60 174;innodb_log_arch_dir = @clusterdir@/innodb/log
87a1c582
ER
175;innodb_log_archive=0
176;set-variable = innodb_buffer_pool_size=80M
177;set-variable = innodb_additional_mem_pool_size=10M
178;set-variable = innodb_file_io_threads=4
179;set-variable = innodb_lock_wait_timeout=50
b0f33e42 180
181
87a1c582 182; used for logs rotation
2ad2f3ce 183[mysqladmin]
1542b54b 184user = mysql_sysadmin
7ce39a59 185password =
87a1c582 186
bd0f57c5 187; vim:syn=dosini
This page took 0.136626 seconds and 4 git commands to generate.