# # The MySQL DATABASE server configuration file. # # You can copy this TO one OF: # - "/etc/mysql/my.cnf" TO SET global options, # - "~/.my.cnf" TO SET user-specific options. # # One can USE ALL long options that the program supports. # Run program WITH --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # FOR explanations see # http://dev.mysql.com/doc/mysql/en/server-system-VARIABLES.html # This will be passed TO ALL mysql clients # It has been reported that passwords should be ENCLOSED WITH ticks/quotes # escpecially IF they contain "#" chars... # Remember TO edit /etc/mysql/debian.cnf WHEN changing the socket location. [client] port = 3306 socket = /var/run/mysqld/mysqld.sock # Here IS entries FOR SOME specific programs # The following VALUES assume you have at least 32M ram # This was formally known AS [safe_mysqld]. BOTH versions are currently parsed. [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # # * Basic Settings # # # * IMPORTANT # IF you make changes TO these settings AND your system uses apparmor, you may # also need TO also adjust /etc/apparmor.d/usr.sbin.mysqld. # USER = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp LANGUAGE = /usr/share/mysql/english skip-external-locking # # Instead OF skip-networking the DEFAULT IS now TO listen ONLY ON # localhost which IS more compatible AND IS NOT less secure. bind-address = 127.0.0.1 # # * Fine Tuning # key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K thread_cache_size = 8 #max_connections = 100 #table_cache = 64 #thread_concurrency = 10 # # * Query Cache Configuration # query_cache_limit = 1M query_cache_size = 16M # # * Logging AND Replication # # BOTH location gets rotated BY the cronjob. # Be aware that this log TYPE IS a performance killer. #log = /var/log/mysql/mysql.log # # Error logging goes TO syslog. This IS a Debian improvement :) # # Here you can see queries WITH especially long duration #log_slow_queries = /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used AS easy TO replay backup logs OR FOR replication. # note: IF you are setting up a replication slave, see README.Debian about # other settings you may need TO CHANGE. #server-id = 1 #log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M #binlog_do_db = include_database_name #binlog_ignore_db = include_database_name # # * BerkeleyDB # # USING BerkeleyDB IS now discouraged AS its support will cease IN 5.1.12. skip-bdb # # * InnoDB # # InnoDB IS enabled BY DEFAULT WITH a 10MB datafile IN /var/lib/mysql/. # READ the manual FOR more InnoDB related options. There are many! # You might want TO disable InnoDB TO shrink the mysqld process BY circa 100MB. #skip-innodb # # * Security Features # # READ the manual, too, IF you want chroot! # chroot = /var/lib/mysql/ # # FOR generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-KEY=/etc/mysql/server-KEY.pem [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster START OF mysql but no tab completition [isamchk] key_buffer = 16M # # * NDB Cluster # # See /usr/share/doc/mysql-server-*/README.Debian FOR more information. # # The following configuration IS READ BY the NDB DATA Nodes (ndbd processes) # NOT FROM the NDB Management Nodes (ndb_mgmd processes). # # [MYSQL_CLUSTER] # ndb-connectstring=127.0.0.1 # # * IMPORTANT: Additional settings that can override those FROM this file! # The files must END WITH '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/