Change MySQL root password

To change MySQL root password login to the server console and run following command:

mysqladmin -u root -p  password ‘new-password’

You will be prompted for your old password and new password will be set to newpass.


Comments

Leave a Reply

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