There is a way to start MySQL in a safe mode with the SUDO command, bypassing user authentication. When we start the MySQL Server in this mode, we can enter the mysql shell without a password, and have access privileges to all databases and tables. From there, we'll be able to reset the mysql root user password.
First, stop the existing MySQL Server: