![죽은 HD에서 MySQL 데이터 마이그레이션을 방지하는 오류를 어떻게 해결할 수 있습니까?](https://rvso.com/image/1518696/%EC%A3%BD%EC%9D%80%20HD%EC%97%90%EC%84%9C%20MySQL%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EB%A7%88%EC%9D%B4%EA%B7%B8%EB%A0%88%EC%9D%B4%EC%85%98%EC%9D%84%20%EB%B0%A9%EC%A7%80%ED%95%98%EB%8A%94%20%EC%98%A4%EB%A5%98%EB%A5%BC%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%ED%95%B4%EA%B2%B0%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F.png)
죽은 HD에서 MySQL 데이터베이스를 복원하려고 합니다. 이전 파일 복사에 대한 지침은 여기에서 따랐습니다.https://stackoverflow.com/questions/40479395/export-mysql-datatabase-from-a-dead-hard-drive-xampp하지만 오류 로그에 다음 메시지가 나타납니다.
170114 22:21:07 [Note] Plugin 'FEDERATED' is disabled.
170114 22:21:07 InnoDB: The InnoDB memory heap is disabled
170114 22:21:07 InnoDB: Mutexes and rw_locks use Windows interlocked functions
170114 22:21:07 InnoDB: Compressed tables use zlib 1.2.3
170114 22:21:07 InnoDB: Initializing buffer pool, size = 38.0M
170114 22:21:07 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file .\ib_logfile0 is of different size 0 56623104 bytes
InnoDB: than specified in the .cnf file 0 19922944 bytes!
170114 22:21:07 [ERROR] Plugin 'InnoDB' init function returned error.
170114 22:21:07 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170114 22:21:07 [ERROR] Unknown/unsupported storage engine: INNODB
170114 22:21:07 [ERROR] Aborting
170114 22:21:07 [Note] C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld.exe: Shutdown complete
이전 데이터베이스는 5.5.40이고 새 데이터베이스는 5.5.54입니다. 왜냐하면 정확히 동일한 버전을 성공적으로 설치할 수 없었기 때문입니다(설치 프로그램에 필요한 다운로드 링크가 더 이상 작동하지 않음). 오류가 단순히 파일에 지정된 크기입니까 .cnf
, 아니면 다른 것을 가리고 있습니까?
답변1
@ITSolutions 덕분에 문제를 해결했습니다.
cnf
내 파일을 다음에서 찾았습니다 C:\Program Files\MySQL\MySQL Server 5.5\my.ini
(위치는 때때로 다를 수 있음).
다음과 같이 변경하고(주석 처리된 원래 값 참고) MySQL 서비스를 다시 시작했습니다.
# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
#innodb_buffer_pool_size=38M
innodb_buffer_pool_size=108M
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
#innodb_log_file_size=19M
innodb_log_file_size=54M
몇 초 안에 로드되었으며 내 모든 데이터에 다시 액세스할 수 있습니다!