my.cnf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. default_authentication_plugin = mysql_native_password
  16. user = mysql
  17. pid-file = /var/run/mysqld/mysqld.pid
  18. socket = /var/run/mysqld/mysqld.sock
  19. port = 3306
  20. skip-external-locking
  21. skip-name-resolve
  22. lower_case_table_names = 1
  23. character-set-server=utf8
  24. collation-server=utf8_general_ci
  25. #
  26. # * Fine Tuning
  27. #
  28. key_buffer_size = 16M
  29. max_allowed_packet = 16M
  30. thread_stack = 256K
  31. thread_cache_size = 128
  32. max_connections = 5000
  33. back_log = 5000
  34. table_open_cache = 800
  35. table_definition_cache = 800
  36. max_heap_table_size = 128M
  37. tmp_table_size = 128M
  38. #
  39. # monitoring off
  40. #
  41. performance-schema = false
  42. #
  43. # innodb settings
  44. #
  45. innodb_use_native_aio = 1
  46. # sync for every sec. not for every commit.
  47. innodb_flush_log_at_trx_commit = 2
  48. innodb_flush_method=O_DIRECT
  49. innodb_buffer_pool_instances=14
  50. sync_binlog=0
  51. #
  52. # * Query Cache Configuration
  53. max_prepared_stmt_count = 1048576
  54. #######################
  55. # mysqldump #
  56. #######################
  57. [mysqldump]
  58. quick
  59. quote-names
  60. max_allowed_packet = 16M
  61. !includedir /etc/mysql/conf.d/