MySQL版本是5.7.9 . OS Windows 7 SP1,32位,NTFS .
我有一个大型转储,其中一个innodb表大约有6000万条记录 . 导入后,当表文件大于4GB时,将出现错误1114 . 但是,继续进口 . 完成后,文件增长到10 GB . 显然,有些数据丢失了 .
我有两个分区 . C为12 GB免费,D为300 GB . 数据库文件在驱动器D上 . 并且tmp目录也在驱动器D上 . 两者都带有TMPDIR env变量和配置文件中的TMPDIR设置 .
我的配置文件如下 .
有人可以提出建议吗?
谢谢 .
[client]
no-beep
port=3306
[mysql]
default-character-set=utf8
[mysqld]
port=3306
datadir="D:/Database/Data"
tmpdir="D:/tmp"
innodb_data_file_path=ibdata1:1G:autoextend
innodb_temp_data_file_path=ibtmp1:12M:autoextend
character-set-server=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
log-output=FILE
general-log=0
general_log_file="ttt.log"
slow-query-log=1
slow_query_log_file="ttt.log"
long_query_time=10
log-error="ttt.err"
server-id=1
secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"
max_connections=151
query_cache_size=0
table_open_cache=2000
tmp_table_size=13M
thread_cache_size=10
#*** MyISAM Specific options
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=17M
key_buffer_size=8M
read_buffer_size=34K
read_rnd_buffer_size=256K
#*** INNODB Specific options ***
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=512M
innodb_buffer_pool_size=512M
innodb_log_file_size=20G
innodb_log_files_in_group=3
innodb_thread_concurrency=9
innodb_autoextend_increment=512
innodb_buffer_pool_instances=8
innodb_concurrency_tickets=5000
innodb_old_blocks_time=1000
innodb_open_files=300
innodb_stats_on_metadata=0
innodb_file_per_table=1
innodb_checksum_algorithm=0
back_log=80
flush_time=0
join_buffer_size=256K
max_allowed_packet=16M
max_connect_errors=100
open_files_limit=4161
query_cache_type=0
sort_buffer_size=256K
table_definition_cache=1400
binlog_row_event_max_size=8K
sync_master_info=10000
sync_relay_log=10000
sync_relay_log_info=10000
wait_timeout=28800
interactive_timeout=28800