my.cnf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #######################
  2. # client #
  3. #######################
  4. [client]
  5. port = 3306
  6. socket = /var/run/mysqld/mysqld.sock
  7. #######################
  8. # mysqld #
  9. #######################
  10. [mysqld]
  11. #
  12. # * Basic Settings
  13. #
  14. default-storage-engine = innodb
  15. user = mysql
  16. pid-file = /var/run/mysqld/mysqld.pid
  17. socket = /var/run/mysqld/mysqld.sock
  18. port = 3306
  19. skip-external-locking
  20. skip-name-resolve
  21. lower_case_table_names = 1
  22. character-set-server=utf8
  23. collation-server=utf8_general_ci
  24. #
  25. # * Fine Tuning
  26. #
  27. key_buffer_size = 16M
  28. max_allowed_packet = 16M
  29. thread_stack = 256K
  30. thread_cache_size = 128
  31. max_connections = 5000
  32. back_log = 5000
  33. table_open_cache = 800
  34. table_definition_cache = 800
  35. max_heap_table_size = 128M
  36. tmp_table_size = 128M
  37. #
  38. # monitoring off
  39. #
  40. performance-schema = false
  41. #
  42. # innodb settings
  43. #
  44. innodb_use_native_aio = 1
  45. # sync for every sec. not for every commit.
  46. innodb_flush_log_at_trx_commit = 2
  47. innodb_flush_method=O_DIRECT
  48. innodb_buffer_pool_instances=14
  49. sync_binlog=0
  50. #
  51. # * Query Cache Configuration
  52. #
  53. query_cache_type = 0
  54. #query_cache_limit = 1M
  55. #query_cache_size = 64M
  56. #query_cache_size = 0
  57. #query_cache_min_res_unit = 1K
  58. max_prepared_stmt_count = 1048576
  59. #######################
  60. # mysqldump #
  61. #######################
  62. [mysqldump]
  63. quick
  64. quote-names
  65. max_allowed_packet = 16M
  66. !includedir /etc/mysql/conf.d/