Advertisement
PalsyP

5.7 my.cnf

Aug 6th, 2024
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. [mysqld]
  2. binlog_format = ROW
  3.  
  4. character_set_server = utf8
  5. connect_timeout = 10
  6. collation_server = utf8_general_ci
  7.  
  8. innodb_buffer_pool_size = 8G # (adjust value here, 50%-70% of total RAM)
  9. innodb_log_file_size = 1G
  10. innodb_file_per_table
  11. innodb_flush_log_at_trx_commit = 1 # may change to 2 or 0
  12. innodb_flush_method = O_DIRECT
  13. innodb_autoinc_lock_mode = 2
  14. innodb_buffer_pool_instances=8
  15. innodb_thread_concurrency=0
  16. interactive_timeout = 120
  17.  
  18. join_buffer_size = 2M
  19. key_buffer_size = 8M
  20.  
  21. local-infile=0
  22. long_query_time = 5
  23.  
  24. max_allowed_packet = 16M
  25. max_connections=100
  26. max_heap_table_size = 32M
  27. myisam_sort_buffer_size = 64M
  28.  
  29. open_files_limit = 64000
  30.  
  31. port = 3306
  32.  
  33. query_cache_type = 0
  34. query_cache_size = 32M
  35. query_cache_limit = 128KM
  36.  
  37. table_open_cache = 4000
  38. table_definition_cache = 10000
  39. thread_cache_size = 80
  40. tmp_table_size = 32M
  41. tmpdir = /tmpmysql/
  42.  
  43. #read_buffer = 2M
  44. read_buffer_size = 2M
  45. read_rnd_buffer_size = 1M
  46.  
  47. skip-name-resolve
  48. socket = /usr/local/mysql/data/mysql.sock
  49. sort_buffer_size = 2M
  50.  
  51. #sql_mode = "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
  52. sql_mode = "ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
  53.  
  54. wait_timeout = 60
  55. #write_buffer = 2M
  56.  
  57. [mysqldump]
  58. max_allowed_packet = 16M
  59. quick
  60.  
  61. [mysql]
  62. no-auto-rehash
  63.  
  64. [myisamchk]
  65. key_buffer_size = 1M
  66. sort_buffer_size = 1M
  67. read_buffer = 2M
  68. write_buffer = 2M
  69.  
  70. [mysqlhotcopy]
  71. interactive-timeout
  72.  
  73. [client]
  74. port = 3306
  75. socket = /usr/local/mysql/data/mysql.sock
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement