]> git.pld-linux.org Git - packages/percona-server.git/blob - mysqld.conf
- update to 5.1 syntax
[packages/percona-server.git] / mysqld.conf
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]
8 datadir     = @clusterdir@/mysqldb/db
9 pid-file    = @clusterdir@/mysqldb/mysql.pid
10 socket      = @clusterdir@/mysqldb/mysql.sock
11 port        = 3306
12 user        = mysql
13
14 ;character-set-server=latin2
15 ;collation-server=latin2_general_ci
16 ;skip-character-set-client-handshake
17
18 ; set default charset
19 ;default-character-set = latin1
20
21 ; Use passwords compatible with old 4.0 mysqld
22 ;old-passwords
23
24 ; Don't use system locking
25 skip-locking
26
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.
30 skip-networking
31
32 ; IP address to bind to
33 ;bind-address=127.0.0.1
34
35 ; no dns
36 ;skip-name-resolve
37
38 ; Emergency option. Use only if you really need this.
39 ;skip-grant-tables
40
41 ; skip startup of slave
42 ;skip-slave-start
43
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
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
57 ; Replication Master Server (default)
58 ; binary logging is required for replication
59 ;log-bin=mysql-bin
60
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
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
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
79 ; Log Errors
80 log-errors = /var/log/mysql/error
81 log-warnings = 2
82
83 ; Log slow queries
84 log-slow-queries = /var/log/mysql/slow.log
85 log-output = FILE
86
87 ; Log connections and queries. It slows down MySQL so it's disabled by default
88 ;log        = /var/log/mysql/log
89
90 ; Log all updates.
91 ;log-update = /var/log/mysql/update
92 ; Log some extra information to update log
93 ;log-long-format
94
95 log-error        = /var/log/mysql/mysql
96 ;log-warnings = 2
97
98 ; Language
99 ;language   = polish
100
101 ; Path for temporary files. Several paths may be specified, separated by a
102 ; colon (:), in this case they are used in a round-robin fashion.
103 ;tmpdir      = /var/tmp
104
105 ;
106 ; Internal server variables
107 ;
108
109 ;set-variable = back_log=5
110 ;set-variable = connect_timeout=5
111 ;set-variable = delayed_insert_timeout=300
112 ;set-variable = delayed_insert_limit=100
113 ;set-variable = flush_time=0
114 ;set-variable = join_buffer_size=131072
115 ;set-variable = key_buffer_size=8M
116 ;set-variable = read_rnd_buffer_size=256K
117 ;set-variable = read_buffer_size=132K
118 ;set-variable = long_query_time=10
119 ;set-variable = max_allowed_packet=1M
120 ;set-variable = max_connections=100
121 ;set-variable = max_user_connections=0
122 ;set-variable = max_connect_errors=10
123 ;set-variable = max_delayed_insert_threads=20
124 ;set-variable = delayed_queue_size=1000
125 ;set-variable = max_join_size=4294967295
126 ;set-variable = max_sort_length=1024
127 ;set-variable = max_write_lock_count=4294967295
128 ;set-variable = net_buffer_length=16384
129 ;set-variable = record_buffer=131072
130 ;set-variable = sort_buffer_size=2M
131 ;set-variable = table_cache=64
132 ;set-variable = tmp_table_size=1M
133 ;set-variable = max_heap_table_size=32M
134 ;set-variable = thread_cache_size=16
135 ;set-variable = thread_stack=65536
136 ; Try number of CPU's*2
137 ;set-variable = thread_concurrency=8
138 ;set-variable = wait_timeout=28800
139 ;set-variable = query_cache_size=8M
140 ;set-variable = query_cache_limit=1M
141
142 ; replication local log
143 ;set-variable = max_relay_log_size=256M
144 ; max size of master binlog files
145 ;set-variable = max_binlog_size=256M
146
147
148 ;
149 ; MyISAM tables options
150 ;
151
152 ; Don't flush key buffers between writes for any MyISAM
153 ; set this if you have dedicated slave server where writes aren't important
154 ;delay-key-write-for-all-tables
155
156 ; Repair automatically on open if the table wasn't closed properly.
157 myisam-recover
158 ;
159 ;set-variable = myisam_sort_buffer_size=4M
160
161
162
163 ;
164 ; InnoDB tables options (see MySQL manual)
165 ;
166 ;skip-innodb
167
168 ; these are actual defaults (as of 5.0.26)
169 innodb_data_home_dir = @clusterdir@/mysqldb/db
170 innodb_data_file_path = ibdata1:10M:autoextend
171 set-variable = innodb_mirrored_log_groups=1
172 innodb_log_group_home_dir = @clusterdir@/mysqldb/db
173 set-variable = innodb_log_files_in_group=2
174 set-variable = innodb_log_file_size=5M
175 set-variable = innodb_log_buffer_size=1M
176
177 ;innodb_flush_log_at_trx_commit=1
178 ;innodb_log_arch_dir = @clusterdir@/innodb/log
179 ;innodb_log_archive=0
180 ;set-variable = innodb_buffer_pool_size=80M
181 ;set-variable = innodb_additional_mem_pool_size=10M
182 ;set-variable = innodb_file_io_threads=4
183 ;set-variable = innodb_lock_wait_timeout=50
184
185
186 ; used for logs rotation
187 [mysqladmin]
188 user        = mysql_logrotate
189 password    =
190
191 ; vim:syn=dosini
This page took 0.054508 seconds and 4 git commands to generate.