innodb启动时会 对log文件的大小进行校验,见下列代码,校验不通过就报你的错误了
611 ret = os_file_get_size(files, &size, &size_high);
614 if (size != srv_calc_low32(srv_log_file_size)
615
|| size_high != srv_calc_high32(srv_log_file_size)) {
616
617
fprintf(stderr,
618
"InnoDB: Error: log file %s is"
619
" of different size %lu %lu bytes\n"
620
"InnoDB: than specified in the .cnf"
621
" file %lu %lu bytes!\n",
622
name, (ulong) size_high, (ulong) size,
623
(ulong) srv_calc_high32(srv_log_file_size),
624
(ulong) srv_calc_low32(srv_log_file_size));
625
626
return(DB_ERROR);
627 }
复制代码
|