my.cnf 1.5 KB

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