Advertisement
Guest User

Untitled

a guest
Jul 10th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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     = /home/mysql
  41. tmpdir      = /tmp
  42. language    = /usr/share/mysql/english
  43. skip-external-locking
  44. #
  45. # Instead of skip-networking the default is now to listen only on
  46. # localhost which is more compatible and is not less secure.
  47. #bind-address       = 127.0.0.1
  48. # SAFETY #
  49. max_allowed_packet             = 16M
  50. max_connect_errors             = 1000000
  51. skip_name_resolve
  52. sysdate_is_now                 = 1
  53.  
  54. # CACHES AND LIMITS #
  55. tmp_table_size                 = 32M
  56. max_heap_table_size            = 32M
  57. query_cache_type               = 0
  58. query_cache_size               = 0
  59. max_connections                = 500
  60. thread_cache_size              = 50
  61. open_files_limit               = 65535
  62. table_definition_cache         = 1024
  63. table_open_cache               = 2048
  64.  
  65. # INNODB #
  66. innodb_flush_method            = O_DIRECT
  67. innodb_log_files_in_group      = 2
  68. innodb_log_file_size           = 128M
  69. innodb_flush_log_at_trx_commit = 2
  70. innodb_file_per_table          = 1
  71. innodb_buffer_pool_size        = 3G
  72.  
  73. # LOGGING #
  74. log_error                      = /home/mysql/mysql-error.log
  75. log_queries_not_using_indexes  = 1
  76. slow_query_log                 = 1
  77. slow_query_log_file            = /home/mysql/mysql-slow.log
  78.  
  79.  
  80.  
  81. [mysqldump]
  82. quick
  83. quote-names
  84. max_allowed_packet  = 16M
  85.  
  86. [mysql]
  87. #no-auto-rehash # faster start of mysql but no tab completition
  88.  
  89. [isamchk]
  90. key_buffer      = 16M
  91.  
  92. #
  93. # * IMPORTANT: Additional settings that can override those from this file!
  94. #   The files must end with '.cnf', otherwise they'll be ignored.
  95. #
  96. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement