From Morose Mosquito, 12 Years ago, written in Plain Text.
Embed
  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. # - "~/.my.cnf" to set user-specific options.
  7. #
  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.
  11. #
  12. # For explanations see
  13. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  14.  
  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.
  19. [client]
  20. port            = 3306
  21. socket          = /var/run/mysqld/mysqld.sock
  22.  
  23. # Here is entries for some specific programs
  24. # The following values assume you have at least 32M ram
  25.  
  26. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  27. [mysqld_safe]
  28. socket          = /var/run/mysqld/mysqld.sock
  29. nice            = 0
  30.  
  31. [mysqld]
  32. #
  33. # * Basic Settings
  34. #
  35. user            = mysql
  36. pid-file        = /var/run/mysqld/mysqld.pid
  37. socket          = /var/run/mysqld/mysqld.sock
  38. port            = 3306
  39. basedir         = /usr
  40. datadir         = /var/lib/mysql
  41. tmpdir          = /tmp
  42. lc-messages-dir = /usr/share/mysql
  43.  
  44. skip-innodb
  45. skip-external-locking  
  46. skip_show_database      
  47. safe-user-create        = 1
  48. local-infile            = 0
  49. symbolic-links          = 0
  50. old_passwords           = 0
  51. default-storage-engine  = MyISAM
  52. character-set-server    = latin1
  53. #
  54. # Instead of skip-networking the default is now to listen only on
  55. # localhost which is more compatible and is not less secure.
  56. bind-address            = 127.0.0.1
  57. #
  58. # * Fine Tuning
  59. #
  60. key_buffer              = 50M
  61. max_allowed_packet      = 16M
  62. thread_stack            = 256K
  63. thread_cache_size       = 8
  64. thread_concurrency      = 32
  65. read_buffer_size        = 8M
  66. table_definition_cache  = 500
  67. join_buffer_size        = 2M
  68. sort_buffer_size        = 32M
  69. read_rnd_buffer_size    = 2M
  70. # This replaces the startup script and checks MyISAM tables if needed
  71. # the first time they are touched
  72. myisam-recover         = BACKUP
  73. max_connections        = 100
  74. table_cache            = 1200
  75. max_heap_table_size    = 4G
  76. tmp_table_size         = 4G
  77. #
  78. # * Query Cache Configuration
  79. #
  80. query_cache_limit       = 16M
  81. query_cache_size        = 512M
  82. #
  83. # * Logging and Replication
  84. #
  85. # Both location gets rotated by the cronjob.
  86. # Be aware that this log type is a performance killer.
  87. # As of 5.1 you can enable the log at runtime!
  88. #general_log_file        = /var/log/mysql/mysql.log
  89. #general_log             = 1
  90. #
  91. # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
  92. #
  93. # Here you can see queries with especially long duration
  94. #log_slow_queries       = /var/log/mysql/mysql-slow.log
  95. #long_query_time = 2
  96. #log-queries-not-using-indexes
  97. #
  98. # The following can be used as easy to replay backup logs or for replication.
  99. # note: if you are setting up a replication slave, see README.Debian about
  100. #       other settings you may need to change.
  101. #server-id              = 1
  102. #log_bin                        = /var/log/mysql/mysql-bin.log
  103. expire_logs_days        = 10
  104. max_binlog_size         = 100M
  105. #binlog_do_db           = include_database_name
  106. #binlog_ignore_db       = include_database_name
  107. #
  108. # * InnoDB
  109. #
  110. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  111. # Read the manual for more InnoDB related options. There are many!
  112. #
  113. # * Security Features
  114. #
  115. # Read the manual, too, if you want chroot!
  116. # chroot = /var/lib/mysql/
  117. #
  118. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  119. #
  120. # ssl-ca=/etc/mysql/cacert.pem
  121. # ssl-cert=/etc/mysql/server-cert.pem
  122. # ssl-key=/etc/mysql/server-key.pem
  123.  
  124.  
  125. [mysqldump]
  126. quick
  127. quote-names
  128. max_allowed_packet      = 16M
  129.  
  130. [mysql]
  131. #no-auto-rehash # faster start of mysql but no tab completition
  132. default-character-set = latin1
  133.  
  134. [isamchk]
  135. key_buffer              = 16M
  136.  
  137. #
  138. # * IMPORTANT: Additional settings that can override those from this file!
  139. #   The files must end with '.cnf', otherwise they'll be ignored.
  140. #
  141. !includedir /etc/mysql/conf.d/