Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.74 KB | None | 0 0
  1. [mysqld]
  2.  
  3. ## General
  4. datadir                         = /var/lib/mysql
  5. tmpdir                          = /var/lib/mysqltmp
  6. socket                          = /var/lib/mysql/mysql.sock
  7. skip-external-locking           = 1
  8. skip-name-resolve
  9. open-files-limit                = 20000
  10. #sql-mode                       = TRADITIONAL
  11. #event-scheduler                = 1
  12.  
  13. ## Cache
  14. thread-cache-size               = 16
  15. table-open-cache                = 8192
  16. table-definition-cache          = 512
  17. query-cache-size                = 64M
  18. query-cache-limit               = 1M
  19.  
  20. ## Per-thread Buffers
  21. sort-buffer-size                = 2M
  22. read-buffer-size                = 1M
  23. read-rnd-buffer-size            = 8M
  24. join-buffer-size                = 2M
  25. thread_stack                = 256K
  26.  
  27. ## Temp Tables
  28. tmp-table-size                  = 128M
  29. max-heap-table-size             = 128M
  30.  
  31. ## Networking
  32. back-log                        = 100
  33.  
  34. max-connections                 = 1000
  35. max-connect-errors              = 10000
  36. max-allowed-packet              = 16M
  37. interactive-timeout             = 60
  38. wait-timeout                    = 60
  39.  
  40. ### Storage Engines
  41. default-storage-engine          = InnoDB
  42. innodb                          = FORCE
  43.  
  44. ## MyISAM
  45. key-buffer-size                 = 64M
  46. myisam-sort-buffer-size         = 128M
  47.  
  48. ## InnoDB
  49. #innodb-log-group-home-dir      = /var/lib/mysql
  50. #innodb-data-home-dir           = /var/lib/mysql
  51. #innodb-data-file-path          = ibdata1:2000M;ibdata2:10M:autoextend
  52. innodb-buffer-pool-size         = 2G
  53. #innodb-additional-mem-pool-size= 20M
  54. innodb-log-file-size            = 256M
  55. innodb_log_files_in_group       = 2
  56. innodb-log-buffer-size          = 4M
  57. #innodb-flush-method            = O_DIRECT
  58. #innodb-file-per-table          = 1
  59. #innodb-open-files              = 300
  60. #innodb-thread-concurrency      = 16
  61. #innodb-support-xa              = 0
  62. innodb-flush-log-at-trx-commit  = 2
  63.  
  64. ## Replication
  65. server-id                       = 333901
  66. log-bin                        = /var/lib/mysqllogs/db1_bin-log
  67. relay-log                      = /var/lib/mysqllogs/db1_relay-log
  68. expire-logs-days               = 14
  69. read-only                      = 1
  70. replicate-ignore-db            = mysql
  71. binlog-ignore-db           = mysql
  72. #sync-binlog                    = 1
  73. log-slave-updates              = 1
  74. #binlog-format                  = STATEMENT
  75. #auto-increment-offset          = 1
  76. #auto-increment-increment       = 2
  77. max_binlog_size             = 100M
  78.  
  79. ## Logging
  80. #log-output                     = FILE
  81. #slow-query-log                 = 1
  82. #slow-query-log-file            = /var/lib/mysqllogs/slow-log
  83. #long-query-time                = 2
  84. #log-queries-not-using-indexes  = 1
  85.  
  86. [mysqld_safe]
  87. log-error                       = /var/log/mysqld.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement