/var/log/mariadb/mariadb.log
gcp 기반 서버에서 오랜만에 mysql 이 시작이 안되어서 로그를 들어가보니
아래와 같은 로그가 기록되어 있다.
2022-07-23 0:31:31 0 [Note] Recovering after a crash using tc.log
2022-07-23 0:31:31 0 [ERROR] Bad magic header in tc log
2022-07-23 0:31:31 0 [ERROR] Crash recovery failed. Either correct the problem (if it's, for example, out of memory error) and restart, or delete tc log and start mysqld with --tc-heuristic-recover={commit|rollback}
2022-07-23 0:31:31 0 [ERROR] Can't init tc log
2022-07-23 0:31:31 0 [ERROR] Aborting
/var/lib/mysql 에 경로에 들어가보니
tc.log 파일이 있는데
열어보면 아래와 같이 빈 공백 문자만 잔뜩이다.
그냥 간단히 tc.log 파일을 삭제하거나 다른곳으로 옮겨주니
mysql 이 드디어 올라오면서 문제가 해결됨
그리고 tc.log 파일은 자동으로 다시 재 생성되었다
centos 8 기반 mysqld 시작 명령어
$ systemctl start mysqld
'DBMS > Mysql MariaDB' 카테고리의 다른 글
mysqld: Can not perform keyring migration 문제 해결 (0) | 2022.07.24 |
---|---|
IP address could not be resolved: Name or service not known 로그 해결 (0) | 2022.07.24 |