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