mariaDB 복구

최근에 마리아DB가 재시작하면 “Missing FILE_CHECKPOINT”라는 에러가 뜨면서 제대로 기동되지 않는다.

2024-06-28 18:16:15 0 [ERROR] InnoDB: Missing FILE_CHECKPOINT(579746204) at 579746204
2024-06-28 18:16:15 0 [ERROR] InnoDB: Log scan aborted at LSN 579746204
2024-06-28 18:16:15 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2024-06-28 18:16:15 0 [Note] InnoDB: Starting shutdown…
2024-06-28 18:16:16 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2024-06-28 18:16:16 0 [Note] Plugin ‘FEEDBACK’ is disabled.
2024-06-28 18:16:16 0 [Note] Plugin ‘wsrep-provider’ is disabled.
2024-06-28 18:16:16 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2024-06-28 18:16:16 0 [ERROR] Aborting

그럴 경우 mysql DB를 제외한 모든 데이타파일을 삭제후 백업된 파일을 다시 임포트하면 된다.

  • set innodb_force_recovery=6 in the configuration files
  • start MariaDB again
  • force dump all databases with mysqldump -f --all-databases > all.sql
  • stop MariaDB
  • delete the entire contents of /var/lib/mysql EXCEPT for /var/lib/mysql/mysql
  • removing innodb_force_recovery=6 from the configuration files
  • force importing all databases back to MariaDB with mysql < all.sql -f

이러한 현상이 자주 발생하고 있다. 다시 MAMP로 복귀해야 하나 싶다.

Leave a Comment

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터가 어떻게 처리되는지 알아보세요.