Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. [client]
  2. user=root
  3. password=root
  4. socket=/var/mysql/mysql.sock
  5.  
  6. [mysqld]
  7.  
  8. # Remove leading # and set to the amount of RAM for the most important data
  9. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  10. # innodb_buffer_pool_size = 128M
  11.  
  12. # Remove leading # to turn on a very important data integrity option: logging
  13. # changes to the binary log between backups.
  14. # log_bin
  15.  
  16. # server_id = .....
  17. # socket = /tmp/mysql.sock
  18. socket = /var/mysql/mysql.sock
  19.  
  20. character-set-server=utf8
  21. default-storage-engine=InnoDB
  22. bind-address = 0.0.0.0
  23.  
  24. wait_timeout=10800
  25. net_read_timeout = 7200
  26. net_write_timeout = 7200
  27.  
  28. ## Security
  29. # safe-user-create prevents autocreating users with the GRANT statement
  30. # unless the user has the insert privilege on mysql.user
  31. safe-user-create = 1
  32.  
  33. lower_case_table_names=2
  34. # explicit_defaults_for_timestamp=TRUE
  35. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  36.  
  37. # By default, MyISAM tables will INSERT into deleted row space before
  38. # appending to the end of the disk. In exchange for saving this trivial
  39. # amount of space, once a row gets deleted, only one insert operation
  40. # may occur at a time until holes are filled. Setting concurrent_insert
  41. # to 2 stops this silly behavior, at the cost of wasting a bit of disk
  42. # space, for a significant performance improvement in MyISAM tables.
  43. # Drupal 7 shouldn't be using MyISAM.
  44. concurrent_insert = 2
  45.  
  46. myisam_sort_buffer_size=64M
  47. table_definition_cache=4096
  48. table_open_cache=16384
  49.  
  50. thread_cache_size = 128
  51.  
  52. max_connections = 256
  53. open_files_limit = 65535
  54.  
  55. key_buffer_size=64M
  56. key_cache_block_size=4K
  57.  
  58. sort_buffer_size=3M
  59. read_buffer_size=2M
  60. read_rnd_buffer_size=64M
  61. join_buffer_size=8M
  62.  
  63. bulk_insert_buffer_size=512M
  64.  
  65. # 1 = default on, 0 = no query_chache, 2 = use SQL_CACHE switch in SQL-statement
  66. query_cache_type = 1
  67.  
  68. tmp_table_size=256M
  69. max_heap_table_size=256M
  70. query_cache_size=64M
  71. query_cache_limit=6M
  72.  
  73. max_allowed_packet=1024M
  74.  
  75. # innodb_file_per_table
  76. # innodb_file_format=barracuda
  77. innodb_thread_concurrency=0
  78. innodb_strict_mode=1
  79. innodb_log_file_size=512M
  80. innodb_log_buffer_size=4M
  81. innodb_buffer_pool_size=4G
  82. innodb_flush_log_at_trx_commit = 0
  83. innodb_lock_wait_timeout = 3600
  84. # Reduce contention. Set to 4+ in MySQL 5.5+
  85. innodb_buffer_pool_instances = 4
  86. # innodb_flush_method = O_DIRECT
  87. innodb_log_files_in_group = 2
  88. innodb_support_xa=0
  89.  
  90. # Logging
  91. slow_query_log=1
  92. slow_query_log_file=/tmp/mysql-slow.log
  93. long_query_time=5
  94. log_queries_not_using_indexes=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement