Advertisement
rei4u2005

my cnf

Jul 9th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  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.  
  20. # Here is entries for some specific programs
  21. # The following values assume you have at least 32M ram
  22.  
  23. [mysqld_safe]
  24. socket = /var/run/mysqld/mysqld.sock
  25. nice = 0
  26.  
  27. [mysqld]
  28. #
  29. # * Basic Settings
  30. #
  31. #validate_password_policy=LOW
  32. #federated
  33. sql-mode=TRADITIONAL
  34. innodb_lock_wait_timeout=50
  35. transaction-isolation=READ-COMMITTED
  36. skip-name-resolve
  37. user = mysql
  38. pid-file = /var/run/mysqld/mysqld.pid
  39. socket = /var/run/mysqld/mysqld.sock
  40. port = 3306
  41. basedir = /usr
  42. datadir = /var/lib/mysql
  43. tmpdir = /tmp
  44. lc-messages-dir = /usr/share/mysql
  45. skip-external-locking
  46.  
  47. # coba betulin error free blocks
  48. innodb_buffer_pool_size=5G
  49. #untuk Scheduler
  50. event_scheduler=ON
  51. #Untuk Skip Error jika free block Error
  52. innodb_doublewrite=off
  53. #
  54. # Instead of skip-networking the default is now to listen only on
  55. # localhost which is more compatible and is not less secure.
  56. #bind-address =127.0.0.1
  57. bind-address = 0.0.0.0
  58. #
  59. # * Fine Tuning
  60. #
  61. key_buffer_size = 10M
  62. max_allowed_packet = 64M
  63. thread_stack = 192K
  64. thread_cache_size = 8
  65. wait_timeout = 3600
  66. interactive_timeout = 3600
  67. innodb_log_file_size = 1G
  68. innodb_buffer_pool_instances = 4
  69. table_open_cache = 3419
  70. join_buffer_size = 1M
  71. read_rnd_buffer_size = 1M
  72. sort_buffer_size = 1M
  73.  
  74. # This replaces the startup script and checks MyISAM tables if needed
  75. # the first time they are touched
  76. myisam-recover-options = BACKUP
  77. max_connections = 251
  78. table_open_cache = 3369
  79. performance_schema=1
  80. #thread_concurrency = 10
  81. #
  82. # * Query Cache Configuration
  83. #
  84. query_cache_limit = 1M
  85. query_cache_size = 80M
  86. query_cache_type = 1
  87. #
  88. # * Logging and Replication
  89. #
  90. # Both location gets rotated by the cronjob.
  91. # Be aware that this log type is a performance killer.
  92. # As of 5.1 you can enable the log at runtime!
  93. #general_log_file = /var/log/mysql/mysql.log
  94. #general_log = 1
  95. #
  96. # Error log - should be very few entries.
  97. #
  98. log_error = /var/log/mysql/error.log
  99. #
  100. # Here you can see queries with especially long duration
  101. #slow_query_log = 1
  102. #slow_query_log_file = /var/log/mysql/mysql-slow.log
  103. #long_query_time = 2
  104. #log-queries-not-using-indexes
  105. #
  106. # The following can be used as easy to replay backup logs or for replication.
  107. # note: if you are setting up a replication slave, see README.Debian about
  108. # other settings you may need to change.
  109. #server-id = 1
  110. #log_bin = /var/log/mysql/mysql-bin.log
  111. expire_logs_days = 10
  112. max_binlog_size = 100M
  113. #binlog_do_db = include_database_name
  114. #binlog_ignore_db = include_database_name
  115. #
  116. # * InnoDB
  117. #
  118. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  119. # Read the manual for more InnoDB related options. There are many!
  120. #
  121. # * Security Features
  122. #
  123. # Read the manual, too, if you want chroot!
  124. # chroot = /var/lib/mysql/
  125. #
  126. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  127. #
  128. # ssl-ca=/etc/mysql/cacert.pem
  129. # ssl-cert=/etc/mysql/server-cert.pem
  130. # ssl-key=/etc/mysql/server-key.pem
  131. max_heap_table_size = 128M
  132. tmp_table_size = 128M
  133. thread_stack = 256K
  134. innodb_stats_on_metadata = 0
  135. optimizer_search_depth = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement