]> git.pld-linux.org Git - packages/mysql.git/blame - mysqld.conf
- merge initscript improvements from HEAD
[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]
c6a5a2ea
ER
8datadir = /var/lib/mysql/mysqldb/db
9pid-file = /var/lib/mysql/mysqldb/mysql.pid
2ad2f3ce 10port = 3306
3127d72f 11socket = /var/lib/mysql/mysql.sock
2ad2f3ce 12user = mysql
13
87a1c582
ER
14;character-set-server=latin2
15;collation-server=latin2_general_ci
7664d6a2 16;skip-character-set-client-handshake
17
18; set default charset
19;default-character-set = latin1
9051d690 20
87a1c582
ER
21; Use passwords compatible with old 4.0 mysqld
22;old-passwords
df187c4e 23
87a1c582
ER
24; Don't use system locking
25;skip-locking
2ad2f3ce 26
7ce39a59 27; Don't allow connections over the network by default
2ad2f3ce 28skip-networking
29
7664d6a2 30; IP address to bind to
31;bind-address=127.0.0.1
32
33; no dns
34;skip-name-resolve
35
87a1c582
ER
36; Emergency option. Use only if you really need this.
37;skip-grant-tables
38
7664d6a2 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
72855f48
ER
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
7664d6a2 58; master setup
59;log-bin
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
87a1c582
ER
71; Log connections and queries. It slows down MySQL so it's disabled by default
72;log = /var/log/mysql/log
73
7ce39a59 74; Log all updates.
87a1c582
ER
75;log-update = /var/log/mysql/update
76; Log some extra information to update log
77;log-long-format
78
79; Log all isam changes
80;log-isam = /var/log/mysql/isamlog
81
82; Language
83;language = polish
84
85;
86; Internal server variables
87;
88
89;set-variable = back_log=5
90;set-variable = connect_timeout=5
91;set-variable = delayed_insert_timeout=300
92;set-variable = delayed_insert_limit=100
93;set-variable = flush_time=0
94;set-variable = join_buffer_size=131072
95;set-variable = key_buffer_size=8M
96;set-variable = long_query_time=10
97;set-variable = max_allowed_packet=1M
98;set-variable = max_connections=100
99;set-variable = max_user_connections=0
100;set-variable = max_connect_errors=10
101;set-variable = max_delayed_insert_threads=20
102;set-variable = delayed_queue_size=1000
103;set-variable = max_join_size=4294967295
104;set-variable = max_sort_length=1024
105;set-variable = max_write_lock_count=4294967295
106;set-variable = net_buffer_length=16384
107;set-variable = record_buffer=131072
108;set-variable = sort_buffer_size=2M
109;set-variable = table_cache=64
110;set-variable = tmp_table_size=1M
7664d6a2 111;set-variable = max_heap_table_size=32M
112;set-variable = thread_cache_size=16
87a1c582 113;set-variable = thread_stack=65536
7664d6a2 114; Try number of CPU's*2
115;set-variable = thread_concurrency=8
87a1c582 116;set-variable = wait_timeout=28800
28635a24
ER
117;set-variable = query_cache_size=8M
118;set-variable = query_cache_limit=1M
87a1c582 119
7664d6a2 120; replication local log
121;set-variable = max_relay_log_size=256M
122; max size of master binlog files
123;set-variable = max_binlog_size=256M
87a1c582
ER
124
125
126;
127; MyISAM tables options
128;
129
130; Don't flush key buffers between writes for any MyISAM
131;delay-key-write-for-all-tables
132
133; Repair automatically on open if the table wasn't closed properly.
b0f33e42 134myisam-recover
7ce39a59 135;
87a1c582 136;set-variable = myisam_sort_buffer_size=4M
b0f33e42 137
138
139
87a1c582 140;
7ce39a59 141; InnoDB tables options (see MySQL manual)
87a1c582 142;
7ce39a59 143;skip-innodb
b0f33e42 144
87a1c582
ER
145;innodb_data_home_dir = /var/lib/mysql/innodb/data
146;innodb_data_file_path = 00:10M;01:20M
147;set-variable = innodb_mirrored_log_groups=1
148;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
149;set-variable = innodb_log_files_in_group=3
150;set-variable = innodb_log_file_size=30M
151;set-variable = innodb_log_buffer_size=8M
b0f33e42 152
87a1c582
ER
153;innodb_flush_log_at_trx_commit=1
154;innodb_log_arch_dir = /var/lib/mysql/innodb/log
155;innodb_log_archive=0
156;set-variable = innodb_buffer_pool_size=80M
157;set-variable = innodb_additional_mem_pool_size=10M
158;set-variable = innodb_file_io_threads=4
159;set-variable = innodb_lock_wait_timeout=50
b0f33e42 160
161
87a1c582
ER
162;
163; Berkeley DB tables options
164;
165; Don't use berkeley db (saves a lot of memory)
166;skip-bdb
b0f33e42 167
7ce39a59 168;bdb-home = /var/lib/mysql/db
87a1c582
ER
169;bdb-log-dir = /var/lib/mysql/bdb/log
170;bdb-tmpdir = /var/lib/mysql/bdb/tmp
b0f33e42 171
172
87a1c582 173;bdb-lock-detect = DEFAULT
b0f33e42 174
87a1c582 175; Don't synchronously flush logs.
7ce39a59 176;bdb-no-sync
b0f33e42 177
87a1c582
ER
178; Don't start Berkeley DB in recover mode.
179;bdb-no-recover
b0f33e42 180
7ce39a59 181; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
87a1c582
ER
182; when initializing Berkeley DB
183;bdb-shared-data
b0f33e42 184
7ce39a59 185;set-variable = bdb_max_lock=1000
b0f33e42 186
187
87a1c582 188; used for logs rotation
2ad2f3ce 189[mysqladmin]
7ce39a59
ER
190user = mysql_logrotate
191password =
87a1c582 192
7664d6a2 193; vim:syn=dosini
This page took 0.057357 seconds and 4 git commands to generate.