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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
| [client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
socket = /var/lib/mysql/mysql.sock
pid_file = /var/lib/mysql/mysql.pid
user = mysql
port = 3306
default_time_zone = '+8:00'
server-id = 1
transaction_isolation = REPEATABLE-READ
basedir = /usr/local/mysql-5.7.21
datadir = /var/lib/mysql
tmpdir = /tmp
default_storage_engine = InnoDB
default_tmp_storage_engine = InnoDB
internal_tmp_disk_storage_engine = InnoDB
character_set_server = utf8mb4
collation-server = utf8mb4_0900_ai_ci
lower_case_table_names = 1
max_connections = 10000
max_connect_errors = 10000
open_files_limit = 65535
interactive_timeout = 1800 wait_timeout = 1800
back_log = 900
max_allowed_packet = 128M
tmp_table_size = 64M
max_heap_table_size = 64M
query_cache_type = 0
query_cache_size = 64M
query_cache_limit = 2M
query_cache_min_res_unit = 4kb
binlog_cache_size = 1M
general_log = 0
general_log_file = /usr/local/mysql-5.7.21/log/mysql-general.log
log_error_verbosity = 2
log_error = /usr/local/mysql-5.7.21/log/mysql-error.log
slow_query_log = 1
long_query_time = 3
min_examined_row_limit = 100
log_throttle_queries_not_using_indexes = 0
slow_query_log_file = /var/log/mysql/mysql-slow.log
log-queries-not-using-indexes = 1
log_bin = /usr/local/mysql-5.7.21/log/mysql-bin.log
expire_logs_days = 0
max_binlog_size = 1000M
binlog_format = row
key_buffer_size = 64M
read_buffer_size = 262144
read_rnd_buffer_size = 1M
sort_buffer_size = 1M
join_buffer_size = 1M
table_open_cache = 2000
table_definition_cache = 1400
table_open_cache_instances = 2
thread_cache_size = 16
thread_stack = 512k
innodb_page_cleaners = 4
innodb_page_size = 16384
innodb_buffer_pool_size = 512M
innodb_buffer_pool_instances = 1
innodb_buffer_pool_chunk_size = 128M
innodb_buffer_pool_load_at_startup = 1
innodb_buffer_pool_dump_at_shutdown = 1
innodb_lru_scan_depth = 1024
innodb_lock_wait_timeout = 60
innodb_io_capacity = 2000
innodb_io_capacity_max = 4000
innodb_flush_method = O_DIRECT
innodb_file_per_table = 1
innodb_undo_directory = /usr/local/mysql-5.7.21/log
innodb_undo_tablespaces = 0
innodb_undo_logs = 128
innodb_undo_log_truncate = 1
innodb_max_undo_log_size = 1G
innodb_log_group_home_dir = /usr/local/mysql-5.7.21/log
innodb_log_file_size = 128M
innodb_log_files_in_group = 3
innodb_log_buffer_size = 16M
innodb_flush_log_at_timeout = 1
innodb_flush_log_at_trx_commit = 1
innodb_open_files = 8192
innodb_read_io_threads = 4 innodb_write_io_threads = 4
innodb_thread_concurrency = 0
innodb_purge_threads = 4
innodb_old_blocks_pct = 37
innodb_old_blocks_time=1000
innodb_use_native_aio = 1
innodb_data_home_dir=/usr/local/mysql-5.7.21/data
innodb_data_file_path = ibdata1:12M:autoextend
explicit_defaults_for_timestamp = 1
[mysqldump]
quick max_allowed_packet = 16M
[mysql]
auto-rehash
socket = /var/lib/mysql/mysql.sock
|