1 | # /etc/mysql/my.cnf: The global mysql configuration file.
|
---|
2 | # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.1,v 1.4 2008/11/14 02:16:25 robbat2 Exp $
|
---|
3 |
|
---|
4 | # The following options will be passed to all MySQL clients
|
---|
5 | [client]
|
---|
6 | #password = your_password
|
---|
7 | port = 3306
|
---|
8 | socket = /var/run/mysqld/mysqld.sock
|
---|
9 |
|
---|
10 | [mysql]
|
---|
11 | character-sets-dir=/usr/share/mysql/charsets
|
---|
12 | default-character-set=utf8
|
---|
13 |
|
---|
14 | [mysqladmin]
|
---|
15 | character-sets-dir=/usr/share/mysql/charsets
|
---|
16 | default-character-set=utf8
|
---|
17 |
|
---|
18 | [mysqlcheck]
|
---|
19 | character-sets-dir=/usr/share/mysql/charsets
|
---|
20 | default-character-set=utf8
|
---|
21 |
|
---|
22 | [mysqldump]
|
---|
23 | character-sets-dir=/usr/share/mysql/charsets
|
---|
24 | default-character-set=utf8
|
---|
25 |
|
---|
26 | [mysqlimport]
|
---|
27 | character-sets-dir=/usr/share/mysql/charsets
|
---|
28 | default-character-set=utf8
|
---|
29 |
|
---|
30 | [mysqlshow]
|
---|
31 | character-sets-dir=/usr/share/mysql/charsets
|
---|
32 | default-character-set=utf8
|
---|
33 |
|
---|
34 | [myisamchk]
|
---|
35 | character-sets-dir=/usr/share/mysql/charsets
|
---|
36 |
|
---|
37 | [myisampack]
|
---|
38 | character-sets-dir=/usr/share/mysql/charsets
|
---|
39 |
|
---|
40 | # use [safe_mysqld] with mysql-3
|
---|
41 | [mysqld_safe]
|
---|
42 | err-log = /var/log/mysql/mysql.err
|
---|
43 |
|
---|
44 | # add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
|
---|
45 | [mysqld]
|
---|
46 | log-slow-queries=/var/log/mysql/log-slow-queries.log
|
---|
47 |
|
---|
48 | character-set-server = utf8
|
---|
49 | default-character-set = utf8
|
---|
50 | user = mysql
|
---|
51 | port = 3306
|
---|
52 | socket = /var/run/mysqld/mysqld.sock
|
---|
53 | pid-file = /var/run/mysqld/mysqld.pid
|
---|
54 | log-error = /var/log/mysql/mysqld.err
|
---|
55 | basedir = /usr
|
---|
56 | datadir = /var/lib/mysql
|
---|
57 | max_connections = 250
|
---|
58 | skip-locking
|
---|
59 | key_buffer = 16M
|
---|
60 | max_allowed_packet = 1M
|
---|
61 | table_cache = 64
|
---|
62 | sort_buffer_size = 512K
|
---|
63 | net_buffer_length = 8K
|
---|
64 | read_buffer_size = 256K
|
---|
65 | read_rnd_buffer_size = 512K
|
---|
66 | myisam_sort_buffer_size = 8M
|
---|
67 | language = /usr/share/mysql/english
|
---|
68 |
|
---|
69 | group_concat_max_len = 64K
|
---|
70 |
|
---|
71 | # security:
|
---|
72 | # using "localhost" in connects uses sockets by default
|
---|
73 | # skip-networking
|
---|
74 | # bind-address = 127.0.0.1
|
---|
75 |
|
---|
76 | # log-bin
|
---|
77 | # server-id = 1
|
---|
78 |
|
---|
79 | # point the following paths to different dedicated disks
|
---|
80 | tmpdir = /tmp/
|
---|
81 | #log-update = /path-to-dedicated-directory/hostname
|
---|
82 |
|
---|
83 | # you need the debug USE flag enabled to use the following directives,
|
---|
84 | # if needed, uncomment them, start the server and issue
|
---|
85 | # #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
|
---|
86 | # this will show you *exactly* what's happening in your server ;)
|
---|
87 |
|
---|
88 | #log = /tmp/mysqld.sql
|
---|
89 | #gdb
|
---|
90 | #debug = d:t:i:o,/tmp/mysqld.trace
|
---|
91 | #one-thread
|
---|
92 |
|
---|
93 | # uncomment the following directives if you are using BDB tables
|
---|
94 | #bdb_cache_size = 4M
|
---|
95 | #bdb_max_lock = 10000
|
---|
96 |
|
---|
97 | # the following is the InnoDB configuration
|
---|
98 | # if you wish to disable innodb instead
|
---|
99 | # uncomment just the next line
|
---|
100 | # skip-innodb
|
---|
101 | #
|
---|
102 | # the rest of the innodb config follows:
|
---|
103 | # don't eat too much memory, we're trying to be safe on 64Mb boxes
|
---|
104 | # you might want to bump this up a bit on boxes with more RAM
|
---|
105 | innodb_buffer_pool_size = 16M
|
---|
106 | # this is the default, increase it if you have lots of tables
|
---|
107 | innodb_additional_mem_pool_size = 2M
|
---|
108 | #
|
---|
109 | # i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
|
---|
110 | # and upstream wants things to be under /var/lib/mysql/, so that's the route
|
---|
111 | # we have to take for the moment
|
---|
112 | #innodb_data_home_dir = /var/lib/mysql/
|
---|
113 | #innodb_log_arch_dir = /var/lib/mysql/
|
---|
114 | #innodb_log_group_home_dir = /var/lib/mysql/
|
---|
115 | # you may wish to change this size to be more suitable for your system
|
---|
116 | # the max is there to avoid run-away growth on your machine
|
---|
117 | innodb_data_file_path = ibdata1:10M:autoextend:max:2G
|
---|
118 | # we keep this at around 25% of of innodb_buffer_pool_size
|
---|
119 | # sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
|
---|
120 | innodb_log_file_size = 5M
|
---|
121 | # this is the default, increase it if you have very large transactions going on
|
---|
122 | innodb_log_buffer_size = 8M
|
---|
123 | # this is the default and won't hurt you
|
---|
124 | # you shouldn't need to tweak it
|
---|
125 | set-variable = innodb_log_files_in_group=2
|
---|
126 | # see the innodb config docs, the other options are not always safe
|
---|
127 | innodb_flush_log_at_trx_commit = 1
|
---|
128 | innodb_lock_wait_timeout = 50
|
---|
129 | innodb_file_per_table
|
---|
130 |
|
---|
131 | [mysqldump]
|
---|
132 | quick
|
---|
133 | max_allowed_packet = 16M
|
---|
134 |
|
---|
135 | [mysql]
|
---|
136 | # uncomment the next directive if you are not familiar with SQL
|
---|
137 | #safe-updates
|
---|
138 |
|
---|
139 | [isamchk]
|
---|
140 | key_buffer = 20M
|
---|
141 | sort_buffer_size = 20M
|
---|
142 | read_buffer = 2M
|
---|
143 | write_buffer = 2M
|
---|
144 |
|
---|
145 | [myisamchk]
|
---|
146 | key_buffer = 20M
|
---|
147 | sort_buffer_size = 20M
|
---|
148 | read_buffer = 2M
|
---|
149 | write_buffer = 2M
|
---|
150 |
|
---|
151 | [mysqlhotcopy]
|
---|
152 | interactive-timeout
|
---|
153 |
|
---|
154 | [mysqld_safe]
|
---|
155 | err-log=/var/log/mysqld.log
|
---|