Select Page

How to change the root password for MySql under Linux in the command line

You will need to know the current root password in order to change it

In the command line type in and execute the following command

mysqladmin -u root -pOLD_PASSWORD password NEW_PASSWORD

Replace OLD_PASSWORD with your old password and NEW_PASSWORD with your new password.

Last Updated On March 23, 2018

Leave a reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.