Advertisement
Guest User

Untitled

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