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
6 ; This section must be the first!
8 datadir = /var/lib/mysql/mysqldb/db
9 pid-file = /var/lib/mysql/mysqldb/mysql.pid
11 socket = /var/lib/mysql/mysql.sock
14 ;character-set-server=latin2
15 ;collation-server=latin2_general_ci
16 ;skip-character-set-client-handshake
19 ;default-character-set = latin1
21 ; Use passwords compatible with old 4.0 mysqld
24 ; Don't use system locking
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.
32 ; IP address to bind to
33 ;bind-address=127.0.0.1
38 ; Emergency option. Use only if you really need this.
41 ; skip startup of slave
45 ;relay-log=slave-relay-bin
49 ;master-password=replica
51 ; master does not ignore them, but we do
52 ;replicate-ignore-db=mysql
53 ;replicate-ignore-db=test
55 ;replicate-rewrite-db=delfi->delfi_ro
57 ; Replication Master Server (default)
58 ; binary logging is required for replication
61 ; required unique id between 1 and 2^32 - 1
62 ; defaults to 1 if master-host is not set but will not function as a master if omitted
65 ; databases to be included in binlog
68 ;binlog-ignore-db=mysql
69 ;binlog-ignore-db=test
71 ; Don't flush key buffers between writes for any MyISAM
72 ; set this if you have dedicated slave server where writes aren't important
73 ;delay-key-write-for-all-tables
76 ;log-slow-queries = /var/log/mysql/slow.log
78 ; Log connections and queries. It slows down MySQL so it's disabled by default
79 ;log = /var/log/mysql/log
82 ;log-update = /var/log/mysql/update
83 ; Log some extra information to update log
89 ; Path for temporary files. Several paths may be specified, separated by a
90 ; colon (:), in this case they are used in a round-robin fashion.
94 ; Internal server variables
97 ;set-variable = back_log=5
98 ;set-variable = connect_timeout=5
99 ;set-variable = delayed_insert_timeout=300
100 ;set-variable = delayed_insert_limit=100
101 ;set-variable = flush_time=0
102 ;set-variable = join_buffer_size=131072
103 ;set-variable = key_buffer_size=8M
104 ;set-variable = long_query_time=10
105 ;set-variable = max_allowed_packet=1M
106 ;set-variable = max_connections=100
107 ;set-variable = max_user_connections=0
108 ;set-variable = max_connect_errors=10
109 ;set-variable = max_delayed_insert_threads=20
110 ;set-variable = delayed_queue_size=1000
111 ;set-variable = max_join_size=4294967295
112 ;set-variable = max_sort_length=1024
113 ;set-variable = max_write_lock_count=4294967295
114 ;set-variable = net_buffer_length=16384
115 ;set-variable = record_buffer=131072
116 ;set-variable = sort_buffer_size=2M
117 ;set-variable = table_cache=64
118 ;set-variable = tmp_table_size=1M
119 ;set-variable = max_heap_table_size=32M
120 ;set-variable = thread_cache_size=16
121 ;set-variable = thread_stack=65536
122 ; Try number of CPU's*2
123 ;set-variable = thread_concurrency=8
124 ;set-variable = wait_timeout=28800
125 ;set-variable = query_cache_size=8M
126 ;set-variable = query_cache_limit=1M
128 ; replication local log
129 ;set-variable = max_relay_log_size=256M
130 ; max size of master binlog files
131 ;set-variable = max_binlog_size=256M
135 ; MyISAM tables options
138 ; Don't flush key buffers between writes for any MyISAM
139 ;delay-key-write-for-all-tables
141 ; Repair automatically on open if the table wasn't closed properly.
144 ;set-variable = myisam_sort_buffer_size=4M
149 ; InnoDB tables options (see MySQL manual)
153 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
154 ;innodb_data_file_path = 00:10M;01:20M
155 ;set-variable = innodb_mirrored_log_groups=1
156 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
157 ;set-variable = innodb_log_files_in_group=3
158 ;set-variable = innodb_log_file_size=30M
159 ;set-variable = innodb_log_buffer_size=8M
161 ;innodb_flush_log_at_trx_commit=1
162 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
163 ;innodb_log_archive=0
164 ;set-variable = innodb_buffer_pool_size=80M
165 ;set-variable = innodb_additional_mem_pool_size=10M
166 ;set-variable = innodb_file_io_threads=4
167 ;set-variable = innodb_lock_wait_timeout=50
171 ; Berkeley DB tables options
173 ; Don't use berkeley db (saves a lot of memory)
176 ;bdb-home = /var/lib/mysql/db
177 ;bdb-log-dir = /var/lib/mysql/bdb/log
178 ;bdb-tmpdir = /var/lib/mysql/bdb/tmp
181 ;bdb-lock-detect = DEFAULT
183 ; Don't synchronously flush logs.
186 ; Don't start Berkeley DB in recover mode.
189 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
190 ; when initializing Berkeley DB
193 ;set-variable = bdb_max_lock=1000
196 ; used for logs rotation
198 user = mysql_logrotate