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