Advertisement
Guest User

my.cnf

a guest
Feb 17th, 2014
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 KB | None | 0 0
  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 = XXXXXXXXXXXXXXXXXXXXXXX
  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 = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  39. basedir = /opt/mysql/server-5.6
  40. datadir = /var/lib/mysql
  41. tmpdir = /tmp
  42. lc-messages-dir = /opt/mysql/server-5.6/share
  43. skip-external-locking
  44.  
  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 = localhost
  49. #
  50. # * Fine Tuning
  51. #
  52. key_buffer = 16K
  53. key_buffer_size = 16K
  54. max_allowed_packet = 1M
  55. table_open_cache = 4
  56. sort_buffer_size = 64K
  57. read_buffer_size = 256K
  58. read_rnd_buffer_size = 256K
  59. net_buffer_length = 2K
  60. thread_stack = 256K
  61. thread_cache_size = 8
  62.  
  63. # This replaces the startup script and checks MyISAM tables if needed
  64. # the first time they are touched
  65. myisam-recover = BACKUP
  66. max_connections = 100
  67. thread_concurrency = 10
  68. #
  69. # * Query Cache Configuration
  70. #
  71. query_cache_limit = 1M
  72. query_cache_size = 16M
  73. #
  74. # * Logging and Replication
  75. #
  76. # Both location gets rotated by the cronjob.
  77. # Be aware that this log type is a performance killer.
  78. # As of 5.1 you can enable the log at runtime!
  79. #general_log_file = /var/log/mysql/mysql.log
  80. #general_log = 1
  81. #
  82. # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
  83. #
  84. # Here you can see queries with especially long duration
  85. #log_slow_queries = /var/log/mysql/mysql-slow.log
  86. #long_query_time = 2
  87. #log-queries-not-using-indexes
  88. #
  89. # The following can be used as easy to replay backup logs or for replication.
  90. # note: if you are setting up a replication slave, see README.Debian about
  91. # other settings you may need to change.
  92. #server-id = 1
  93. #log_bin = /var/log/mysql/mysql-bin.log
  94. expire_logs_days = 10
  95. max_binlog_size = 100M
  96. #binlog_do_db = include_database_name
  97. #binlog_ignore_db = include_database_name
  98. #
  99. # * InnoDB
  100. #
  101. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  102. # Read the manual for more InnoDB related options. There are many!
  103. #
  104. # * Security Features
  105. #
  106. # Read the manual, too, if you want chroot!
  107. # chroot = /var/lib/mysql/
  108. #
  109. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  110. #
  111. # ssl-ca=/etc/mysql/cacert.pem
  112. # ssl-cert=/etc/mysql/server-cert.pem
  113. # ssl-key=/etc/mysql/server-key.pem
  114.  
  115.  
  116.  
  117. [mysqldump]
  118. quick
  119. quote-names
  120. max_allowed_packet = 16M
  121.  
  122. [mysql]
  123. #no-auto-rehash # faster start of mysql but no tab completition
  124.  
  125. [isamchk]
  126. key_buffer = 16M
  127.  
  128. #
  129. # * IMPORTANT: Additional settings that can override those from this file!
  130. # The files must end with '.cnf', otherwise they'll be ignored.
  131. #
  132. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement