2 # The MySQL database server configuration file.
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.
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.
13 # For explanations see
14 # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
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.
22 socket = /var/run/mysqld/mysqld.sock
24 # Here is entries for some specific programs
25 # The following values assume you have at least 32M ram
27 # This was formally known as [safe_mysqld]. Both versions are currently parsed.
29 socket = /var/run/mysqld/mysqld.sock
37 pid-file = /var/run/mysqld/mysqld.pid
38 socket = /var/run/mysqld/mysqld.sock
41 datadir = /var/lib/mysql
43 language = /usr/share/mysql/english
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
53 max_allowed_packet = 16M
56 # * Query Cache Configuration
58 query_cache_limit = 1048576
59 query_cache_size = 16777216
62 # * Logging and Replication
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
69 # Error logging goes to syslog. This is a Debian improvement :)
71 # Here you can see queries with especially long duration
72 #log-slow-queries = /var/log/mysql/mysql-slow.log
74 # The following can be used as easy to replay backup logs or for replication.
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
84 # The use of BerkeleyDB is now discouraged and support for it will probably
85 # cease in the next versions.
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!
95 # Read the manual, too, if you want chroot!
96 # chroot = /var/lib/mysql/
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
109 max_allowed_packet = 16M
112 #no-auto-rehash # faster start of mysql but no tab completition