
다음을 사용하여 mysql을 다시 시작하려고 합니다.
sudo service mysql start
비밀번호를 재설정하기 위해 몇 가지 단계를 따랐지만 작동하지 않고 다시 시작할 수도 없습니다.
오류 메시지:
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-01-16 01:59:30 UTC; 13s ago
Process: 9234 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Process: 9212 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 7109 (code=exited, status=0/SUCCESS)
Jan 16 01:59:29 ip-172-26-2-13 systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 16 01:59:29 ip-172-26-2-13 systemd[1]: Failed to start MySQL Community Server.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: Stopped MySQL Community Server.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: mysql.service: Start request repeated too quickly.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 16 01:59:30 ip-172-26-2-13 systemd[1]: Failed to start MySQL Community Server.
또한 sudo apt-get을 사용하여 제거하고 다시 설치하려고 시도했지만 동일한 오류가 발생합니다. 내가 뭘 잘못하고 있는지 어떤 아이디어가 있습니까?
편집됨:sudo journalctl -b -u mysql
Jan 16 01:33:03 ip-172-26-2-13 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Jan 16 01:33:03 ip-172-26-2-13 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 3.
Jan 16 01:33:03 ip-172-26-2-13 systemd[1]: Stopped MySQL Community Server.
Jan 16 01:33:03 ip-172-26-2-13 systemd[1]: Starting MySQL Community Server...
Jan 16 01:33:04 ip-172-26-2-13 mysqld[4170]: Initialization of mysqld failed: 0
Jan 16 01:33:04 ip-172-26-2-13 systemd[1]: mysql.service: Control process exited, code=exited status=1
Jan 16 01:33:04 ip-172-26-2-13 systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 16 01:33:04 ip-172-26-2-13 systemd[1]: Failed to start MySQL Community Server.