DataBase/MariaDB
[TroubleShooting] Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
Dev. Jkun
2018. 4. 18. 13:30
반응형
CentOS 기준
Error Messages
- Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
- Aria engine is not enabled or did not start. The Aria engine must be enabled to continue as mysqld was configured with --with-aria-tmp-tables
위 에러 내용중 하나가 발생하면서, MariaDB 가 기동이 안된다면 다음과 같이 처리한다.
$ systemctl status mariadb
치면 위 메세지중 2번째 메세지를 표시하고 있을것이다.
이제 아래 내용들을 순서대로 처리하면 된다.
1. aria_log_control 파일을 유저경로로 옮기고 삭제.
$ cd /var/lib/mysql
$ mv aria_log_control ~/
2. ib_log 파일들도 동일하게 유저경로로 옮기고 삭제
$ cd /var/lib/mysql
$ mv ib_logfile0 ~/
$ mv ib_logfile1 ~/
$ cd ~/
$ rm ./ib_logfile0 ib_logfile1
3. 위와 같이 완료됬다면
$ systemctl enable mariadb
$ systemctl start mariadb
반응형