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 allow connections over the network by default
33 ; Emergency option. Use only if you really need this.
40 ;relay-log=slave-relay-bin
44 ;master-password=replica
49 ; databases to be included in binlog
52 ;binlog-ignore-db=mysql
53 ;binlog-ignore-db=test
55 ; Don't flush key buffers between writes for any MyISAM
56 ; set this if you have dedicated slave server where writes aren't important
57 ;delay-key-write-for-all-tables
59 ; Log connections and queries. It slows down MySQL so it's disabled by default
60 ;log = /var/log/mysql/log
63 ;log-update = /var/log/mysql/update
64 ; Log some extra information to update log
67 ; Log all isam changes
68 ;log-isam = /var/log/mysql/isamlog
74 ; Internal server variables
77 ;set-variable = back_log=5
78 ;set-variable = connect_timeout=5
79 ;set-variable = delayed_insert_timeout=300
80 ;set-variable = delayed_insert_limit=100
81 ;set-variable = flush_time=0
82 ;set-variable = join_buffer_size=131072
83 ;set-variable = key_buffer_size=8M
84 ;set-variable = long_query_time=10
85 ;set-variable = max_allowed_packet=1M
86 ;set-variable = max_connections=100
87 ;set-variable = max_user_connections=0
88 ;set-variable = max_connect_errors=10
89 ;set-variable = max_delayed_insert_threads=20
90 ;set-variable = delayed_queue_size=1000
91 ;set-variable = max_join_size=4294967295
92 ;set-variable = max_sort_length=1024
93 ;set-variable = max_write_lock_count=4294967295
94 ;set-variable = net_buffer_length=16384
95 ;set-variable = record_buffer=131072
96 ;set-variable = sort_buffer_size=2M
97 ;set-variable = table_cache=64
98 ;set-variable = tmp_table_size=1M
99 ;set-variable = max_heap_table_size=32M
100 ;set-variable = thread_cache_size=16
101 ;set-variable = thread_stack=65536
102 ; Try number of CPU's*2
103 ;set-variable = thread_concurrency=8
104 ;set-variable = wait_timeout=28800
105 ;set-variable = query_cache_size=8M
106 ;set-variable = query_cache_limit=1M
108 ; replication local log
109 ;set-variable = max_relay_log_size=256M
110 ; max size of master binlog files
111 ;set-variable = max_binlog_size=256M
115 ; MyISAM tables options
118 ; Don't flush key buffers between writes for any MyISAM
119 ;delay-key-write-for-all-tables
121 ; Repair automatically on open if the table wasn't closed properly.
124 ;set-variable = myisam_sort_buffer_size=4M
129 ; InnoDB tables options (see MySQL manual)
133 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
134 ;innodb_data_file_path = 00:10M;01:20M
135 ;set-variable = innodb_mirrored_log_groups=1
136 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
137 ;set-variable = innodb_log_files_in_group=3
138 ;set-variable = innodb_log_file_size=30M
139 ;set-variable = innodb_log_buffer_size=8M
141 ;innodb_flush_log_at_trx_commit=1
142 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
143 ;innodb_log_archive=0
144 ;set-variable = innodb_buffer_pool_size=80M
145 ;set-variable = innodb_additional_mem_pool_size=10M
146 ;set-variable = innodb_file_io_threads=4
147 ;set-variable = innodb_lock_wait_timeout=50
151 ; Berkeley DB tables options
153 ; Don't use berkeley db (saves a lot of memory)
156 ;bdb-home = /var/lib/mysql/db
157 ;bdb-log-dir = /var/lib/mysql/bdb/log
158 ;bdb-tmpdir = /var/lib/mysql/bdb/tmp
161 ;bdb-lock-detect = DEFAULT
163 ; Don't synchronously flush logs.
166 ; Don't start Berkeley DB in recover mode.
169 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
170 ; when initializing Berkeley DB
173 ;set-variable = bdb_max_lock=1000
176 ; used for logs rotation
178 user = mysql_logrotate