my.cnf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # For advice on how to change settings please see
  2. # http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
  3. [mysqld]
  4. #
  5. # Remove leading # and set to the amount of RAM for the most important data
  6. # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  7. # innodb_buffer_pool_size = 128M
  8. #
  9. # Remove the leading "# " to disable binary logging
  10. # Binary logging captures changes between backups and is enabled by
  11. # default. It's default setting is log_bin=binlog
  12. # disable_log_bin
  13. #
  14. # Remove leading # to set options mainly useful for reporting servers.
  15. # The server defaults are faster for transactions and fast SELECTs.
  16. # Adjust sizes as needed, experiment to find the optimal values.
  17. # join_buffer_size = 128M
  18. # sort_buffer_size = 2M
  19. # read_rnd_buffer_size = 2M
  20. #
  21. # Remove leading # to revert to previous value for default_authentication_plugin,
  22. # this will increase compatibility with older clients. For background, see:
  23. # https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
  24. # default-authentication-plugin=mysql_native_password
  25. datadir=/var/lib/mysql
  26. socket=/var/lib/mysql/mysql.sock
  27. log-error=/var/log/mysqld.log
  28. pid-file=/var/run/mysqld/mysqld.pid
  29. max_connections=1000
  30. max_connect_errors=10000
  31. sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  32. lower_case_table_names=1
  33. innodb_lock_wait_timeout=3600
  34. character_set_server=utf8
  35. max_allowed_packet = 1024M
  36. ngram_token_size = 1
  37. innodb_ft_min_token_size = 1
  38. ft_min_word_len = 1
  39. expire_logs_days = 7