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