Set root password MySQL for the first time:
$ mysqladmin -u root password NEWPASSWORD
Change your existing root password:
$ mysqladmin -u root -p'oldpassword' password newpass
Set root password MySQL for the first time:
$ mysqladmin -u root password NEWPASSWORD
Change your existing root password:
$ mysqladmin -u root -p'oldpassword' password newpass