]> git.pld-linux.org Git - packages/mysql.git/blame - mysqld.conf
- fixing php-cli with php-mysql ext segfault:
[packages/mysql.git] / mysqld.conf
CommitLineData
13ce82d8 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]
8datadir = @clusterdir@/mysqldb/db
9pid-file = @clusterdir@/mysqldb/mysql.pid
10socket = @clusterdir@/mysqldb/mysql.sock
11port = 3306
12user = mysql
13
3b5ec266 14; ssl options
a8c2b192
ER
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
3b5ec266
ER
18;ssl-cipher = DHE-RSA-AES256-SHA
19
13ce82d8 20;character-set-server=latin2
21;collation-server=latin2_general_ci
22;skip-character-set-client-handshake
23
24; set default charset
25;default-character-set = latin1
26
27; Use passwords compatible with old 4.0 mysqld
28;old-passwords
29
30; Don't use system locking
31skip-locking
32
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.
36skip-networking
37
38; IP address to bind to
39;bind-address=127.0.0.1
40
41; no dns
42;skip-name-resolve
43
44; Emergency option. Use only if you really need this.
45;skip-grant-tables
46
47; skip startup of slave
48;skip-slave-start
49
50; slave setup
51;relay-log=slave-relay-bin
52;master-host=master
53;master-user=replica
54;master-port=3306
55;master-password=replica
155e6a71 56;report-host=db-slave.example.org
13ce82d8 57
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
64; Replication Master Server (default)
65; binary logging is required for replication
66;log-bin=mysql-bin
67
68; Normally, a slave does not log to its own binary log any updates that are
69; received from a master server. This option tells the slave to log the updates
70; performed by its SQL thread to its own binary log. For this option to have
71; any effect, the slave must also be started with the --log-bin option to
72; enable binary logging. --log-slave-updates is used when you want to chain
73; replication servers.
74;log-slave-updates
75
76; required unique id between 1 and 2^32 - 1
77; defaults to 1 if master-host is not set but will not function as a master if omitted
78;server-id=2
79
aa89d2fc
ER
80; To set up N master servers, set the variables like this:
81; Set auto_increment_increment to N on each master.
82; Set each of the N masters to have a different auto_increment_offset, using the values 1, 2, ..., N
83;auto-increment-offset=1
84;auto-increment-increment=2
85
13ce82d8 86; databases to be included in binlog
87;binlog-do-db=db1
88; or excluded
89;binlog-ignore-db=mysql
90;binlog-ignore-db=test
91
10ec775d
ER
92; mysqld error log (stderr)
93log-error = /var/log/mysql/mysqld.log
94log-warnings = 2
95
13ce82d8 96; Log slow queries
94917303 97log-slow-queries = /var/log/mysql/slow.log
13ce82d8 98
99; Log connections and queries. It slows down MySQL so it's disabled by default
10ec775d 100;log = /var/log/mysql/query.log
13ce82d8 101
102; Log all updates.
103;log-update = /var/log/mysql/update
104; Log some extra information to update log
105;log-long-format
106
107; Language
108;language = polish
109
110; Path for temporary files. Several paths may be specified, separated by a
111; colon (:), in this case they are used in a round-robin fashion.
112;tmpdir = /var/tmp
113
114;
115; Internal server variables
116;
117
118;set-variable = back_log=5
119;set-variable = connect_timeout=5
120;set-variable = delayed_insert_timeout=300
121;set-variable = delayed_insert_limit=100
122;set-variable = flush_time=0
123;set-variable = join_buffer_size=131072
124;set-variable = key_buffer_size=8M
125;set-variable = read_rnd_buffer_size=256K
126;set-variable = read_buffer_size=132K
127;set-variable = long_query_time=10
128;set-variable = max_allowed_packet=1M
129;set-variable = max_connections=100
130;set-variable = max_user_connections=0
131;set-variable = max_connect_errors=10
132;set-variable = max_delayed_insert_threads=20
133;set-variable = delayed_queue_size=1000
134;set-variable = max_join_size=4294967295
135;set-variable = max_sort_length=1024
136;set-variable = max_write_lock_count=4294967295
137;set-variable = net_buffer_length=16384
138;set-variable = record_buffer=131072
139;set-variable = sort_buffer_size=2M
140;set-variable = table_cache=64
141;set-variable = tmp_table_size=1M
142;set-variable = max_heap_table_size=32M
143;set-variable = thread_cache_size=16
144;set-variable = thread_stack=65536
145; Try number of CPU's*2
146;set-variable = thread_concurrency=8
147;set-variable = wait_timeout=28800
148;set-variable = query_cache_size=8M
149;set-variable = query_cache_limit=1M
150
151; replication local log
152;set-variable = max_relay_log_size=256M
153; max size of master binlog files
154;set-variable = max_binlog_size=256M
155
d8d1fd98
ER
156; Fulltext search options
157;ft_min_word_len=2
13ce82d8 158
159;
160; MyISAM tables options
161;
162
163; Don't flush key buffers between writes for any MyISAM
164; set this if you have dedicated slave server where writes aren't important
165;delay-key-write-for-all-tables
166
167; Repair automatically on open if the table wasn't closed properly.
168myisam-recover
169;
170;set-variable = myisam_sort_buffer_size=4M
171
172
173
174;
175; InnoDB tables options (see MySQL manual)
176;
177;skip-innodb
178
179; these are actual defaults (as of 5.0.26)
180innodb_data_home_dir = @clusterdir@/mysqldb/db
181innodb_data_file_path = ibdata1:10M:autoextend
182set-variable = innodb_mirrored_log_groups=1
183innodb_log_group_home_dir = @clusterdir@/mysqldb/db
184set-variable = innodb_log_files_in_group=2
185set-variable = innodb_log_file_size=5M
186set-variable = innodb_log_buffer_size=1M
187
188;innodb_flush_log_at_trx_commit=1
189;innodb_log_arch_dir = @clusterdir@/innodb/log
190;innodb_log_archive=0
191;set-variable = innodb_buffer_pool_size=80M
192;set-variable = innodb_additional_mem_pool_size=10M
193;set-variable = innodb_file_io_threads=4
194;set-variable = innodb_lock_wait_timeout=50
195
196
197;
198; Berkeley DB tables options
199;
200; Don't use berkeley db (saves a lot of memory)
201;skip-bdb
202
203;bdb-home = @clusterdir@/db
204;bdb-log-dir = @clusterdir@/bdb/log
205;bdb-tmpdir = @clusterdir@/bdb/tmp
206
207
208;bdb-lock-detect = DEFAULT
209
210; Don't synchronously flush logs.
211;bdb-no-sync
212
213; Don't start Berkeley DB in recover mode.
214;bdb-no-recover
215
216; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
217; when initializing Berkeley DB
218;bdb-shared-data
219
220;set-variable = bdb_max_lock=1000
221
222
223; used for logs rotation
224[mysqladmin]
070de8be 225user = mysql_sysadmin
13ce82d8 226password =
227
20e9f7fe 228; vim:ft=dosini
This page took 0.085834 seconds and 4 git commands to generate.