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 # - "~/.my.cnf" to set user-specific options.
8 # One can use all long options that the program supports.
9 # Run program with --help to get a list of available options and with
10 # --print-defaults to see which it would actually understand and use.
12 # For explanations see
13 # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
15 # This will be passed to all mysql clients
16 # It has been reported that passwords should be enclosed with ticks/quotes
17 # escpecially if they contain "#" chars...
18 # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
21 socket = /var/run/mysqld/mysqld.sock
23 # Here is entries for some specific programs
24 # The following values assume you have at least 32M ram
26 # This was formally known as [safe_mysqld]. Both versions are currently parsed.
28 socket = /var/run/mysqld/mysqld.sock
36 pid-file = /var/run/mysqld/mysqld.pid
37 socket = /var/run/mysqld/mysqld.sock
40 character-set-server = utf8
41 collation-server = utf8_unicode_ci
42 datadir = /var/lib/mysql
44 lc-messages-dir = /usr/share/mysql
47 # Instead of skip-networking the default is now to listen only on
48 # localhost which is more compatible and is not less secure.
49 bind-address = 127.0.0.1
51 #set not case sensitive
52 lower_case_table_names = 1
58 max_allowed_packet = 16M
61 # This replaces the startup script and checks MyISAM tables if needed
62 # the first time they are touched
63 myisam-recover = BACKUP
64 #max_connections = 100
66 #thread_concurrency = 10
68 # * Query Cache Configuration
70 query_cache_limit = 1M
71 query_cache_size = 16M
73 # * Logging and Replication
75 # Both location gets rotated by the cronjob.
76 # Be aware that this log type is a performance killer.
77 # As of 5.1 you can enable the log at runtime!
78 #general_log_file = /var/log/mysql/mysql.log
81 # Error log - should be very few entries.
83 log_error = /var/log/mysql/error.log
85 # Here you can see queries with especially long duration
86 #slow_query_log_file = /var/log/mysql/mysql-slow.log
89 #log_queries_not_using_indexes
91 # The following can be used as easy to replay backup logs or for replication.
92 # note: if you are setting up a replication slave, see README.Debian about
93 # other settings you may need to change.
95 #log_bin = /var/log/mysql/mysql-bin.log
97 max_binlog_size = 100M
98 #binlog_do_db = include_database_name
99 #binlog_ignore_db = include_database_name
103 # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
104 # Read the manual for more InnoDB related options. There are many!
106 # * Security Features
108 # Read the manual, too, if you want chroot!
109 # chroot = /var/lib/mysql/
111 # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
113 # ssl-ca=/etc/mysql/cacert.pem
114 # ssl-cert=/etc/mysql/server-cert.pem
115 # ssl-key=/etc/mysql/server-key.pem
122 max_allowed_packet = 16M
125 #no-auto-rehash # faster start of mysql but no tab completition
131 # * IMPORTANT: Additional settings that can override those from this file!
132 # The files must end with '.cnf', otherwise they'll be ignored.
134 !includedir /etc/mysql/conf.d/