1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
   | [client] port = 3306 socket = /tmp/mysql.sock
  [mysqld]
  server-id = 1
 
  port = 3306
 
  basedir = /usr/local/mysql
 
  datadir = /usr/local/mysql/data
 
  pid-file = /usr/local/mysql/mysql.pid
 
  socket = /tmp/mysql.sock
 
  tmpdir = /tmp
 
  user = mysql
 
  bind-address = 0.0.0.0
 
 
 
 
 
 
 
  skip_name_resolve = 1
 
 
 
 
  character-set-server = utf8mb4
 
  collation-server = utf8mb4_general_ci
 
  init_connect='SET NAMES utf8mb4'
 
  lower_case_table_names = 1
 
  max_connections = 1000
 
  max_connect_errors = 1000
 
  explicit_defaults_for_timestamp = true
 
  max_allowed_packet = 1024M
 
 
 
  interactive_timeout = 1800 wait_timeout = 1800
 
 
 
  tmp_table_size = 134217728 max_heap_table_size = 134217728
 
 
 
  query_cache_size = 0 query_cache_type = 0
 
  log_error = error.log
 
  slow_query_log = 1 slow_query_log_file = slow.log
 
  log_queries_not_using_indexes = 1
 
  log_throttle_queries_not_using_indexes = 5
 
  log_slow_slave_statements = 1
 
  long_query_time = 8
 
  min_examined_row_limit = 666
 
  expire_logs_days = 5
   |