innodb_flush_method设置
1、根据官网文档的说明,你的错误信息显示用的是 O_DSYNC ,但你说你的是 WIN7,那明显是用错了呗

2、Permitted Values (Unix) Type string NULL O_DSYNC littlesync nosync O_DIRECT O_DIRECT_NO_FSYNC

3、Permitted Values (Windows) Type string NULL normal unbuffered

4、Win10 下测试这两个都没问题,NULL 就是不指定,试了下无法在配置文件中指定 NULLinnodb_flush_method=normalinnodb_flush_method=unbuffered

5、log-bin=my.bin
binlog_format=mixed
server-id=1
max_connect_errors = 3000
wait_timeout=2880000
interactive_timeout=2880000
#关闭缓冲
query_cache_size = 0
query_cache_type = 0
#int类型可以为空
sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

6、max_allowed_packet =256MB
read_buffer_size = 8M
read_rnd_buffer_size = 16M
lower_case_table_names = 1
key_buffer_size = 15M
table_open_cache = 400
table_definition_cache = 400
table_open_cache_instances = 64
metadata_locks_hash_instances=64

7、sort_buffer_size = 16M
join_buffer_size = 16M
thread_cache_size = 768
query_cache_size = 0
query_cache_type = 0
tmp_table_size = 96M
performance_schema=OFF
open_files_limit = 65535
back_log = 1024

8、innodb_buffer_pool_size=512MB
innodb_buffer_pool_instances = 8
innodb_buffer_pool_load_at_startup = 1
innodb_buffer_pool_dump_at_shutdown = 1
innodb_io_capacity = 4000
innodb_io_capacity_max = 8000
innodb_flush_neighbors = 0
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_purge_threads = 4
# not start innodb_page_cleaners = 4
#ib_logfile0 or 1 size
innodb_log_file_size=512MB
# 4MB-8MB ok
innodb_log_buffer_size = 32M
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table = 1
external-locking = FALSE
#skip-external-locking
expire_logs_days=90
max_binlog_size=500M
skip-name-resolve=OFF
