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 = /opt/local/var/run/mysqld/mysqld.sock |
---|
17 | |
---|
18 | [safe_mysqld] |
---|
19 | err-log = /opt/local/var/log/mysql/mysql.err |
---|
20 | pid-file = /opt/local/var/run/mysqld/mysqld.pid |
---|
21 | socket = /opt/local/var/run/mysqld/mysqld.sock |
---|
22 | port = 3306 |
---|
23 | |
---|
24 | [mysqld_safe] |
---|
25 | err-log = /opt/local/var/log/mysql/mysql.err |
---|
26 | pid-file = /opt/local/var/run/mysqld/mysqld.pid |
---|
27 | socket = /opt/local/var/run/mysqld/mysqld.sock |
---|
28 | port = 3306 |
---|
29 | |
---|
30 | [mysqld] |
---|
31 | #skip-networking |
---|
32 | skip-innodb |
---|
33 | user = mysql |
---|
34 | pid-file = /opt/local/var/run/mysqld/mysqld.pid |
---|
35 | socket = /opt/local/var/run/mysqld/mysqld.sock |
---|
36 | port = 3306 |
---|
37 | log = /opt/local/var/log/mysql/mysql.log |
---|
38 | basedir = /opt/local |
---|
39 | datadir = /opt/local/var/db/mysql |
---|
40 | tmpdir = /tmp |
---|
41 | language = /opt/local/share/mysql/english |
---|
42 | skip-locking |
---|
43 | set-variable = key_buffer=16M |
---|
44 | set-variable = max_allowed_packet=1M |
---|
45 | set-variable = thread_stack=128K |
---|
46 | |
---|
47 | [mysqldump] |
---|
48 | quick |
---|
49 | set-variable = max_allowed_packet=1M |
---|
50 | |
---|
51 | [mysql] |
---|
52 | #no-auto-rehash # faster start of mysql but no tab completition |
---|
53 | |
---|
54 | [isamchk] |
---|
55 | set-variable = key_buffer=16 |
---|