Advertisement
Guest User

my.cnf of OLD server

a guest
Nov 14th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. # -- old server --
  2. #
  3. # The MySQL database server configuration file.
  4. #
  5. # You can copy this to one of:
  6. # - "/etc/mysql/my.cnf" to set global options,
  7. # - "~/.my.cnf" to set user-specific options.
  8. #
  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.
  12. #
  13. # For explanations see
  14. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  15.  
  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.
  20. [client]
  21. port = 3306
  22. socket = /var/run/mysqld/mysqld.sock
  23.  
  24. # Here is entries for some specific programs
  25. # The following values assume you have at least 32M ram
  26.  
  27. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  28. [mysqld_safe]
  29. socket = /var/run/mysqld/mysqld.sock
  30. nice = 0
  31.  
  32. [mysqld]
  33. #
  34. # * Basic Settings
  35. #
  36. user = mysql
  37. pid-file = /var/run/mysqld/mysqld.pid
  38. socket = /var/run/mysqld/mysqld.sock
  39. port = 3306
  40. basedir = /usr
  41. datadir = /var/lib/mysql
  42. tmpdir = /tmp
  43. language = /usr/share/mysql/english
  44. skip-external-locking
  45. #
  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
  49. #
  50. # * Fine Tuning
  51. #
  52. key_buffer = 16M
  53. max_allowed_packet = 16M
  54. thread_stack = 128K
  55. thread_cache_size = 8
  56. #max_connections = 100
  57. #table_cache = 64
  58. #thread_concurrency = 10
  59. #
  60. # * Query Cache Configuration
  61. #
  62. query_cache_limit = 1M
  63. query_cache_size = 16M
  64. #
  65. # * Logging and Replication
  66. #
  67. # Both location gets rotated by the cronjob.
  68. # Be aware that this log type is a performance killer.
  69. #log = /var/log/mysql/mysql.log
  70. #
  71. # Error logging goes to syslog. This is a Debian improvement :)
  72. #
  73. # Here you can see queries with especially long duration
  74. log_slow_queries = /var/log/mysql/mysql-slow.log
  75. #long_query_time = 2
  76. #log-queries-not-using-indexes
  77. #
  78. # The following can be used as easy to replay backup logs or for replication.
  79. #server-id = 1
  80. #(DISABLED BY UDO)#log_bin = /var/log/mysql/mysql-bin.log
  81. # WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
  82. #(DISABLED BY UDO)#expire_logs_days = 10
  83. max_binlog_size = 100M
  84. #binlog_do_db = include_database_name
  85. #binlog_ignore_db = include_database_name
  86. #
  87. # * BerkeleyDB
  88. #
  89. # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
  90. skip-bdb
  91. #
  92. # * InnoDB
  93. #
  94. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  95. # Read the manual for more InnoDB related options. There are many!
  96. # You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
  97. #skip-innodb
  98.  
  99. # by Udo:
  100. innodb_buffer_pool_size = 512M
  101. innodb_additional_mem_pool_size = 32M
  102.  
  103.  
  104. #
  105. # * Security Features
  106. #
  107. # Read the manual, too, if you want chroot!
  108. # chroot = /var/lib/mysql/
  109. #
  110. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  111. #
  112. # ssl-ca=/etc/mysql/cacert.pem
  113. # ssl-cert=/etc/mysql/server-cert.pem
  114. # ssl-key=/etc/mysql/server-key.pem
  115.  
  116.  
  117.  
  118. [mysqldump]
  119. quick
  120. quote-names
  121. max_allowed_packet = 16M
  122.  
  123. [mysql]
  124. #no-auto-rehash # faster start of mysql but no tab completition
  125.  
  126. [isamchk]
  127. key_buffer = 16M
  128.  
  129. #
  130. # * NDB Cluster
  131. #
  132. # See /usr/share/doc/mysql-server-*/README.Debian for more information.
  133. #
  134. # The following configuration is read by the NDB Data Nodes (ndbd processes)
  135. # not from the NDB Management Nodes (ndb_mgmd processes).
  136. #
  137. # [MYSQL_CLUSTER]
  138. # ndb-connectstring=127.0.0.1
  139.  
  140.  
  141. #
  142. # * IMPORTANT: Additional settings that can override those from this file!
  143. #
  144. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement