Paste2 Logo
  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    = /tmp/mysql.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    = /tmp/mysql.sock
  29. nice        = 0
  30.  
  31. [mysqld]
  32. old_passwords = true # inserted by debconf
  33. # We activated the above for connections from hosts running Debian Woody/Sarge!
  34. #
  35. # Prior to MySQL 5.0, user passwords were stored in a rather weak way. This
  36. # has been improved with the drawback that client programs shipped with
  37. # Debian Woody/Sarge (technically: linked against libmysqlclient.so.12 or
  38. # earlier) cannot connect any more if either their account has either been
  39. # created or their password has been modified using MySQL 5.0.
  40. # See http://dev.mysql.com/doc/refman/5.0/en/old-client.html
  41. #
  42. # * Basic Settings
  43. #
  44. user        = mysql
  45. pid-file        = /var/run/mysqld/mysqld.pid
  46. socket    = /tmp/mysql.sock
  47. port        = 3306
  48. basedir  = /usr
  49. datadir  = /var/lib/mysql
  50. tmpdir    = /tmp
  51. language        = /usr/share/mysql/english
  52. skip-external-locking
  53. #
  54. # Instead of skip-networking you can now listen only on
  55. # localhost which is more compatible and is not less secure.
  56. # bind-address    = 127.0.0.1
  57. # skip-networking
  58. #
  59. # * Fine Tuning
  60. #
  61. key_buffer            = 16M
  62. max_allowed_packet      = 16M
  63. thread_stack        = 128K
  64. thread_cache_size       = 8
  65. max_connections         = 350
  66.  
  67. max_heap_table_size     = 1024M
  68. tmp_table_size          = 1024M
  69.  
  70. #
  71. # * Query Cache Configuration
  72. #
  73. query_cache_limit       = 1048576
  74. query_cache_size        = 16777216
  75. query_cache_type        = 1
  76. #
  77. # * Logging and Replication
  78. #
  79. # Both location gets rotated by the cronjob.
  80. # Be aware that this log type is a performance killer.
  81. #log        = /var/log/mysql.log
  82. #
  83. # Error logging goes to syslog. This is a Debian improvement :)
  84. #
  85. # Here you can see queries with especially long duration
  86. #log_slow_queries       = /var/log/mysql/mysql-slow.log
  87. #
  88. # The following can be used as easy to replay backup logs or for replication.
  89. #server-id            = 1
  90. #log_bin                        = /var/log/mysql/mysql-bin.log
  91. #expire_logs_days       = 10
  92. max_binlog_size         = 100M
  93. #binlog_do_db      = include_database_name
  94. #binlog_ignore_db       = include_database_name
  95. #
  96. # * BerkeleyDB
  97. #
  98. # According to an MySQL employee the use of BerkeleyDB is now discouraged
  99. # and support for it will probably cease in the next versions.
  100. skip-bdb
  101. #
  102. # * InnoDB
  103. #
  104. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  105. # Read the manual for more InnoDB related options. There are many!
  106. # You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
  107. #skip-innodb
  108. #
  109. # * Security Features
  110. #
  111. # Read the manual, too, if you want chroot!
  112. # chroot = /var/lib/mysql/
  113. #
  114. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  115. #
  116. # ssl-ca=/etc/mysql/cacert.pem
  117. # ssl-cert=/etc/mysql/server-cert.pem
  118. # ssl-key=/etc/mysql/server-key.pem
  119.  
  120.  
  121.  
  122. [mysqldump]
  123. quick
  124. quote-names
  125. max_allowed_packet      = 16M
  126.  
  127. [mysql]
  128. #no-auto-rehash # faster start of mysql but no tab completition
  129.  
  130. [isamchk]
  131. key_buffer            = 16M
  132.  
  133. #
  134. # * NDB Cluster
  135. #
  136. # See /usr/share/doc/mysql-server-*/README.Debian for more information.
  137. #
  138. # The following configuration is read by the ndbd storage daemons,
  139. # not from the ndb_mgmd management daemon.
  140. #
  141. # [MYSQL_CLUSTER]
  142. # ndb-connectstring=127.0.0.1
  143.  
  144.  

my.cnf