80_my.cnf 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [client]
  2. port = 3306
  3. socket = /tmp/mysql.sock
  4. [mysql]
  5. prompt = \u@\h [\d]>\_
  6. no_auto_rehash
  7. [mysqld]
  8. user = mysql
  9. port = 3306
  10. socket = /tmp/mysql.sock
  11. bind-address = 127.0.0.1
  12. basedir = /usr/local
  13. datadir = /var/db/mysql
  14. tmpdir = /var/db/mysql_tmpdir
  15. replica-load-tmpdir = /var/db/mysql_tmpdir
  16. secure-file-priv = /var/db/mysql_secure
  17. log-bin = mysql-bin
  18. log-output = TABLE
  19. relay-log-recovery = 1
  20. slow-query-log = 1
  21. server-id = 1
  22. sync_binlog = 1
  23. sync_relay_log = 1
  24. binlog_cache_size = 16M
  25. binlog_expire_logs_seconds = 2592000
  26. default_password_lifetime = 0
  27. enforce-gtid-consistency = 1
  28. gtid-mode = ON
  29. safe-user-create = 1
  30. lower_case_table_names = 1
  31. explicit-defaults-for-timestamp = 1
  32. myisam-recover-options = BACKUP,FORCE
  33. open_files_limit = 32768
  34. table_open_cache = 16384
  35. table_definition_cache = 8192
  36. net_retry_count = 16384
  37. key_buffer_size = 256M
  38. max_allowed_packet = 64M
  39. long_query_time = 0.5
  40. innodb_buffer_pool_size = 1G
  41. innodb_data_home_dir = /var/db/mysql
  42. innodb_log_group_home_dir = /var/db/mysql
  43. innodb_data_file_path = ibdata1:128M:autoextend
  44. innodb_temp_data_file_path = ibtmp1:128M:autoextend
  45. innodb_flush_method = O_DIRECT
  46. innodb_redo_log_capacity = 512M
  47. innodb_log_buffer_size = 16M
  48. innodb_write_io_threads = 8
  49. innodb_read_io_threads = 8
  50. innodb_autoinc_lock_mode = 2
  51. sql_mode=NO_ENGINE_SUBSTITUTION
  52. [mysqldump]
  53. max_allowed_packet = 256M
  54. quote_names
  55. quick