Advertisement
interscot

my.cnf

Aug 26th, 2018
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. [mysqld]
  2. local-infile=0
  3. datadir=/var/lib/mysql
  4. socket=/var/lib/mysql/mysql.sock
  5. user=mysql
  6. # Disabling symbolic-links is recommended to prevent assorted security risks
  7. symbolic-links=0
  8.  
  9. # Performance optimisations - 07/03/2018
  10. bulk_insert_buffer_size = 64M
  11. innodb_autoextend_increment = 512
  12. #innodb_buffer_pool_instances = 8
  13. innodb_buffer_pool_size = 16G
  14. innodb_flush_log_at_trx_commit = 2
  15. innodb_flush_method = O_DIRECT
  16. innodb_log_buffer_size = 8M
  17. innodb_log_file_size = 256M
  18. innodb_thread_concurrency = 10
  19. join_buffer_size = 16M
  20. key_buffer = 32M
  21. key_buffer_size = 64M
  22. max_allowed_packet = 16M
  23. max_connections = 200
  24. max_heap_table_size = 256M
  25. myisam_max_extra_sort_file_size = 10G
  26. myisam_max_sort_file_size = 10G
  27. myisam_repair_threads = 1
  28. myisam_sort_buffer_size = 128M
  29. query_cache_limit = 2M
  30. query_cache_size = 64M
  31. query_cache_type = 0
  32. read_buffer_size = 16M
  33. read_rnd_buffer_size = 4M
  34. sort_buffer_size = 16M
  35. table_open_cache = 2000
  36. thread_cache_size = 4
  37. tmp_table_size = 256M
  38.  
  39. # =======================================
  40.  
  41. [mysqld_safe]
  42. log-error=/var/log/mysqld.log
  43. pid-file=/var/run/mysqld/mysqld.pid
  44.  
  45. # Logging
  46. general_log = 0
  47. general_log_file = /var/log/mysql/query.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement