mysqladmin -u root -p password 'newstrongpassword'
mysqladmin change root password
Reply
mysqladmin -u root -p password 'newstrongpassword'
To change your mysql password use mysqladmin
. It’s a great utility.
# mysqladmin -u root -p'oldpassword' password 'newpassword'