7010eff2f0ef77742eaa782854ed8fb1eaf8f6fb
[carnet-upgrade.git] / usr / share / carnet-upgrade / files / etc / mysql / my.cnf
1 #
2 # The MySQL database server configuration file.
3 #
4 # You can copy this to one of:
5 # - "/etc/mysql/my.cnf" to set global options,
6 # - "/var/lib/mysql/my.cnf" to set server-specific options or
7 # - "~/.my.cnf" to set user-specific options.
8
9 # One can use all long options that the program supports.
10 # Run program with --help to get a list of available options and with
11 # --print-defaults to see which it would actually understand and use.
12 #
13 # For explanations see
14 # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
15
16 # This will be passed to all mysql clients
17 # It has been reported that passwords should be enclosed with ticks/quotes
18 # escpecially if they contain "#" chars...
19 # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
20 [client]
21 port            = 3306
22 socket          = /var/run/mysqld/mysqld.sock
23
24 # Here is entries for some specific programs
25 # The following values assume you have at least 32M ram
26
27 # This was formally known as [safe_mysqld]. Both versions are currently parsed.
28 [mysqld_safe]
29 socket          = /var/run/mysqld/mysqld.sock
30 nice            = 0
31
32 [mysqld]
33 #
34 # * Basic Settings
35 #
36 user            = mysql
37 pid-file        = /var/run/mysqld/mysqld.pid
38 socket          = /var/run/mysqld/mysqld.sock
39 port            = 3306
40 basedir         = /usr
41 datadir         = /var/lib/mysql
42 tmpdir          = /tmp
43 language        = /usr/share/mysql/english
44 skip-external-locking
45 #
46 # Instead of skip-networking the default is now to listen only on
47 # localhost which is more compatible and is not less secure.
48 bind-address            = 127.0.0.1
49 #
50 # * Fine Tuning
51 #
52 key_buffer              = 16M
53 max_allowed_packet      = 16M
54 thread_stack            = 128K
55 #
56 # * Query Cache Configuration
57 #
58 query_cache_limit       = 1048576
59 query_cache_size        = 16777216
60 query_cache_type        = 1
61 #
62 # * Logging and Replication
63 #
64 # Both location gets rotated by the cronjob.
65 # Be aware that this log type is a performance killer.
66 #log            = /var/log/mysql.log
67 #log            = /var/log/mysql/mysql.log
68 #
69 # Error logging goes to syslog. This is a Debian improvement :)
70 #
71 # Here you can see queries with especially long duration
72 #log-slow-queries       = /var/log/mysql/mysql-slow.log
73 #
74 # The following can be used as easy to replay backup logs or for replication.
75 #server-id              = 1
76 log-bin                 = /var/log/mysql/mysql-bin.log
77 # See /etc/mysql/debian-log-rotate.conf for the number of files kept.
78 max_binlog_size         = 104857600
79 #binlog-do-db           = include_database_name
80 #binlog-ignore-db       = include_database_name
81 #
82 # * BerkeleyDB
83 #
84 # The use of BerkeleyDB is now discouraged and support for it will probably
85 # cease in the next versions.
86 skip-bdb
87 #
88 # * InnoDB
89 #
90 # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
91 # Read the manual for more InnoDB related options. There are many!
92 #
93 # * Security Feature
94 #
95 # Read the manual, too, if you want chroot!
96 # chroot = /var/lib/mysql/
97 #
98 # If you want to enable SSL support (recommended) read the manual or my
99 # HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt.gz
100 # ssl-ca=/etc/mysql/cacert.pem
101 # ssl-cert=/etc/mysql/server-cert.pem
102 # ssl-key=/etc/mysql/server-key.pem
103
104
105
106 [mysqldump]
107 quick
108 quote-names
109 max_allowed_packet      = 16M
110
111 [mysql]
112 #no-auto-rehash # faster start of mysql but no tab completition
113
114 [isamchk]
115 key_buffer              = 16M