1 | # /etc/mysql/my.cnf: The global mysql configuration file. |
---|
2 | |
---|
3 | # This file can be simultaneously placed in three places: |
---|
4 | # 1. /etc/mysql/my.cnf to set global options. |
---|
5 | # 2. /var/lib/mysql/my.cnf to set server-specific options. |
---|
6 | # 3. ~/.my.cnf to set user-specific options. |
---|
7 | # |
---|
8 | # One can use all long options that the program supports. |
---|
9 | # Run the program with --help to get a list of them. |
---|
10 | # |
---|
11 | # The following values assume you have at least 32M RAM! |
---|
12 | |
---|
13 | [client] |
---|
14 | #password = my_password |
---|
15 | port = 3306 |
---|
16 | socket = __PREFIX/var/run/mysqld/mysqld.sock |
---|
17 | |
---|
18 | [safe_mysqld] |
---|
19 | err-log = __PREFIX/var/log/mysql/mysql.err |
---|
20 | |
---|
21 | [mysqld] |
---|
22 | #skip-networking |
---|
23 | skip-innodb |
---|
24 | user = mysql |
---|
25 | pid-file = __PREFIX/var/run/mysqld/mysqld.pid |
---|
26 | socket = __PREFIX/var/run/mysqld/mysqld.sock |
---|
27 | port = 3306 |
---|
28 | log = __PREFIX/var/log/mysql/mysql.log |
---|
29 | basedir = __PREFIX |
---|
30 | datadir = __PREFIX/var/db/mysql |
---|
31 | tmpdir = /tmp |
---|
32 | language = __PREFIX/share/mysql/english |
---|
33 | skip-locking |
---|
34 | set-variable = key_buffer=16M |
---|
35 | set-variable = max_allowed_packet=1M |
---|
36 | set-variable = thread_stack=128K |
---|
37 | |
---|
38 | [mysqldump] |
---|
39 | quick |
---|
40 | set-variable = max_allowed_packet=1M |
---|
41 | |
---|
42 | [mysql] |
---|
43 | #no-auto-rehash # faster start of mysql but no tab completition |
---|
44 | |
---|
45 | [isamchk] |
---|
46 | set-variable = key_buffer=16 |
---|