]> git.pld-linux.org Git - packages/percona-server.git/blob - mysqld.conf
- add replication related options
[packages/percona-server.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 ; no dns
31 ;skip-name-resolve
32
33 ; Emergency option. Use only if you really need this.
34 ;skip-grant-tables
35
36 ; replication options
37 ;server-id=2
38
39 ; slave setup
40 ;relay-log=slave-relay-bin
41 ;master-host=master
42 ;master-user=replica
43 ;master-port=3306
44 ;master-password=replica
45
46 ; master setup
47 ;log-bin
48
49 ; databases to be included in binlog
50 ;binlog-do-db=db1
51 ; or excluded
52 ;binlog-ignore-db=mysql
53 ;binlog-ignore-db=test
54
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
58
59 ; Log connections and queries. It slows down MySQL so it's disabled by default
60 ;log        = /var/log/mysql/log
61
62 ; Log all updates.
63 ;log-update = /var/log/mysql/update
64 ; Log some extra information to update log
65 ;log-long-format
66
67 ; Log all isam changes
68 ;log-isam    = /var/log/mysql/isamlog
69
70 ; Language
71 ;language   = polish
72
73 ;
74 ; Internal server variables
75 ;
76
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 = thread_stack=65536
100 ;set-variable = wait_timeout=28800
101 ;set-variable = query_cache_size=8M
102 ;set-variable = query_cache_limit=1M
103
104
105
106 ;
107 ; MyISAM tables options
108 ;
109
110 ; Don't flush key buffers between writes for any MyISAM
111 ;delay-key-write-for-all-tables
112
113 ; Repair automatically on open if the table wasn't closed properly.
114 myisam-recover
115 ;
116 ;set-variable = myisam_sort_buffer_size=4M
117
118
119
120 ;
121 ; InnoDB tables options (see MySQL manual)
122 ;
123 ;skip-innodb
124
125 ;innodb_data_home_dir = /var/lib/mysql/innodb/data
126 ;innodb_data_file_path = 00:10M;01:20M
127 ;set-variable = innodb_mirrored_log_groups=1
128 ;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
129 ;set-variable = innodb_log_files_in_group=3
130 ;set-variable = innodb_log_file_size=30M
131 ;set-variable = innodb_log_buffer_size=8M
132
133 ;innodb_flush_log_at_trx_commit=1
134 ;innodb_log_arch_dir = /var/lib/mysql/innodb/log
135 ;innodb_log_archive=0
136 ;set-variable = innodb_buffer_pool_size=80M
137 ;set-variable = innodb_additional_mem_pool_size=10M
138 ;set-variable = innodb_file_io_threads=4
139 ;set-variable = innodb_lock_wait_timeout=50
140
141
142 ;
143 ; Berkeley DB tables options
144 ;
145 ; Don't use berkeley db (saves a lot of memory)
146 ;skip-bdb
147
148 ;bdb-home          =  /var/lib/mysql/db
149 ;bdb-log-dir       =  /var/lib/mysql/bdb/log
150 ;bdb-tmpdir        =  /var/lib/mysql/bdb/tmp
151
152
153 ;bdb-lock-detect   =  DEFAULT
154
155 ; Don't synchronously flush logs.
156 ;bdb-no-sync
157
158 ; Don't start Berkeley DB in recover mode.
159 ;bdb-no-recover
160
161 ; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
162 ; when initializing Berkeley DB
163 ;bdb-shared-data
164
165 ;set-variable      = bdb_max_lock=1000
166
167
168 ; used for logs rotation
169 [mysqladmin]
170 user        = mysql_logrotate
171 password    =
172
173 ; vim=syn=dosini
This page took 0.04165 seconds and 4 git commands to generate.