service mysqld start 하면
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
와 같은 뭣같은 에러를 뿜뿜하는 경우.
난 이전 버전의 mysql 데이터들이 남아있어서 그런 경우였음.. (5.x -> 8.x)
cat /etc/my.cnf | grep log-err
에 나오는 파일경로 (나의 경우 /var/log/mysqld.log)
cat /var/log/mysqld.log | grep '[ERROR]'
확인결과
2020-05-06T06:28:06.069412Z 1 [ERROR] [MY-013090] [InnoDB] Unsupported redo log format (0). The redo log was created before MySQL 5.7.9
2020-05-06T06:28:06.069510Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
5.x 의 로그가 남아있어서 말썽이다..
cat /etc/my.cnf | grep datadir 로 데이터 경로 확인 후 (나의 경우 /var/lib/mysql)
yum remove mysql-*
삭제 후
rm -rf /var/lib/mysql
폴더 삭제 후
mysql 재설치...
service mysqld start
유후~