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