I have forgotten my root password and I am following the official page to reset my password.I have followed the exact steps.
When I run the sql-init.txt fil
sql-init.txt
The commandline was getting stuck. So , I had to close it forcefully(Ctrl+C). Restarting my computer and MySQL services got it working. Password was set to the new one.