]> git.pld-linux.org Git - packages/mysql.git/blob - mysqld.conf
55be1a103b3d55f29b98d846e26a0dfa935c6f1f
[packages/mysql.git] / mysqld.conf
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
4 ; $Id$
5
6 ; This section must be the first!
7 [mysqld]
8 datadir     = /var/lib/mysql/mysqldb/db
9 pid-file    = /var/lib/mysql/mysqldb/mysql.pid
10 port        = 3306
11 socket      = /var/lib/mysql/mysql.sock
12 user        = mysql
13
14 ;character-set-server=latin2
15 ;collation-server=latin2_general_ci
16 ;skip-character-set-client-handshake
17
18 ; set default charset
19 ;default-character-set = latin1
20
21 ; Use passwords compatible with old 4.0 mysqld
22 ;old-passwords
23
24 ; Don't use system locking
25 ;skip-locking
26
27 ; Don't allow connections over the network by default
28 skip-networking
29
30 ; IP address to bind to
31 ;bind-address=127.0.0.1
32
33 ; no dns
34 ;skip-name-resolve
35
36 ; Emergency option. Use only if you really need this.
37 ;skip-grant-tables
38
39 ; replication options
40 ;server-id=2
41
42 ; skip startup of slave
43 ;skip-slave-start
44
45 ; slave setup
46 ;relay-log=slave-relay-bin
47 ;master-host=master
48 ;master-user=replica
49 ;master-port=3306
50 ;master-password=replica
51
52 ; master setup
53 ;log-bin
54
55 ; databases to be included in binlog
56 ;binlog-do-db=db1
57 ; or excluded
58 ;binlog-ignore-db=mysql
59 ;binlog-ignore-db=test
60
61 ; Don't flush key buffers between writes for any MyISAM
62 ; set this if you have dedicated slave server where writes aren't important
63 ;delay-key-write-for-all-tables
64
65 ; Log connections and queries. It slows down MySQL so it's disabled by default
66 ;log        = /var/log/mysql/log
67
68 ; Log all updates.
69 ;log-update = /var/log/mysql/update
70 ; Log some extra information to update log
71 ;log-long-format
72
73 ; Log all isam changes
74 ;log-isam    = /var/log/mysql/isamlog
75
76 ; Language
77 ;language   = polish
78
79 ;
80 ; Internal server variables
81 ;
82
83 ;set-variable = back_log=5
84 ;set-variable = connect_timeout=5
85 ;set-variable = delayed_insert_timeout=300
86 ;set-variable = delayed_insert_limit=100
87 ;set-variable = flush_time=0
88 ;set-variable = join_buffer_size=131072
89 ;set-variable = key_buffer_size=8M
90 ;set-variable = long_query_time=10
91 ;set-variable = max_allowed_packet=1M
92 ;set-variable = max_connections=100
93 ;set-variable = max_user_connections=0
94 ;set-variable = max_connect_errors=10
95 ;set-variable = max_delayed_insert_threads=20
96 ;set-variable = delayed_queue_size=1000
97 ;set-variable = max_join_size=4294967295
98 ;set-variable = max_sort_length=1024
99 ;set-variable = max_write_lock_count=4294967295
100 ;set-variable = net_buffer_length=16384
101 ;set-variable = record_buffer=131072
102 ;set-variable = sort_buffer_size=2M
103 ;set-variable = table_cache=64
104 ;set-variable = tmp_table_size=1M
105 ;set-variable = max_heap_table_size=32M
106 ;set-variable = thread_cache_size=16
107 ;set-variable = thread_stack=65536
108 ; Try number of CPU's*2
109 ;set-variable = thread_concurrency=8
110 ;set-variable = wait_timeout=28800
111 ;set-variable = query_cache_size=8M
112 ;set-variable = query_cache_limit=1M
113
114 ; replication local log
115 ;set-variable = max_relay_log_size=256M
116 ; max size of master binlog files
117 ;set-variable = max_binlog_size=256M
118
119
120 ;
121 ; MyISAM tables options
122 ;
123
124 ; Don't flush key buffers between writes for any MyISAM
125 ;delay-key-write-for-all-tables
126
127 ; Repair automatically on open if the table wasn't closed properly.
128 myisam-recover
129 ;
130 ;set-variable = myisam_sort_buffer_size=4M
131
132
133
134 ;
135 ; InnoDB tables options (see MySQL manual)
136 ;
137 ;skip-innodb
138
139 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
140 ;innodb_data_file_path = 00:10M;01:20M
141 ;set-variable = innodb_mirrored_log_groups=1
142 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
143 ;set-variable = innodb_log_files_in_group=3
144 ;set-variable = innodb_log_file_size=30M
145 ;set-variable = innodb_log_buffer_size=8M
146
147 ;innodb_flush_log_at_trx_commit=1
148 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
149 ;innodb_log_archive=0
150 ;set-variable = innodb_buffer_pool_size=80M
151 ;set-variable = innodb_additional_mem_pool_size=10M
152 ;set-variable = innodb_file_io_threads=4
153 ;set-variable = innodb_lock_wait_timeout=50
154
155
156 ;
157 ; Berkeley DB tables options
158 ;
159 ; Don't use berkeley db (saves a lot of memory)
160 ;skip-bdb
161
162 ;bdb-home          =  /var/lib/mysql/db
163 ;bdb-log-dir       =  /var/lib/mysql/bdb/log
164 ;bdb-tmpdir        =  /var/lib/mysql/bdb/tmp
165
166
167 ;bdb-lock-detect   =  DEFAULT
168
169 ; Don't synchronously flush logs.
170 ;bdb-no-sync
171
172 ; Don't start Berkeley DB in recover mode.
173 ;bdb-no-recover
174
175 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
176 ; when initializing Berkeley DB
177 ;bdb-shared-data
178
179 ;set-variable      = bdb_max_lock=1000
180
181
182 ; used for logs rotation
183 [mysqladmin]
184 user        = mysql_logrotate
185 password    =
186
187 ; vim:syn=dosini
This page took 0.137613 seconds and 2 git commands to generate.