How to reset MySQL root password (even if you’ve forgotten it)

You’ve forgotten your MySQL root password? Whether you’re on EC2 or on a Ubuntu, Fedora, or other server, we’ve got you covered.