Change MySQL root password

If you have MYSQL root password and want to change MySQL root password, first login to MYSQL with command

Method 1

Method 2

OR

mysql root mysql