Reset MySQL root Password

Reset MySQL 5.7 root password on Ubuntu 16.04

To reset MySQL root password, stop MySQL

Start MySQL with

Start another terminal, login to MySQL as root

Run following commands to change password.

Now you need to kill running MySQL processes and start MySQL as normal.

Add a Comment

Your email address will not be published. Required fields are marked *