최근에 마리아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=6in 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/mysqlEXCEPT for/var/lib/mysql/mysql- removing
innodb_force_recovery=6from the configuration files- force importing all databases back to MariaDB with
mysql < all.sql -f
이러한 현상이 자주 발생하고 있다. 다시 MAMP로 복귀해야 하나 싶다.
