Step #1: – Remove previous installed packages and clear cache
I did Step #1.
Step #2: – Setup Yum Repository
I did Step #2.
Step #3: – disable all repositories in mysql repo file.
I did Step #3.
Step #4 – Install MySQL Community Server
yum --enablerepo=mysql80-community install mysql-community-server
I did not get any errorin Step #4.
Step #5 –import the new GPG key
I did not do Step #5.
Step #6 – Re-run STEP #3 Install MySQL Community Server
I did not do Step #6.
Step #7: test
ec2-user:~ $ mysql -V mysql Ver 8.0.33 for Linux on x86_64 (MySQL Community Server - GPL)
Step #8: Double check that no errors when running yum update
ec2-user:~ $ sudo sudo yum update Loaded plugins: extras_suggestions, langpacks, update-motd No packages marked for update
ec2-user:~ $ sudo systemctl start mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. ec2-user:~ $ sudo systemctl status mysqld ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2023-06-27 00:09:49 UTC; 12s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 22229 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/FAILURE) Process: 22177 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 22229 (code=exited, status=1/FAILURE) Status: "Server shutdown complete"
Jun 27 00:09:48 ip-172-31-77-158.ec2.internal systemd[1]: Starting MySQL Server... Jun 27 00:09:49 ip-172-31-77-158.ec2.internal systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE Jun 27 00:09:49 ip-172-31-77-158.ec2.internal systemd[1]: Failed to start MySQL Server. Jun 27 00:09:49 ip-172-31-77-158.ec2.internal systemd[1]: Unit mysqld.service entered failed state. Jun 27 00:09:49 ip-172-31-77-158.ec2.internal systemd[1]: mysqld.service failed. ec2-user:~ $ journalctl -xe
(I am at the finish line, almost.)