By: Prem Tiwari | Last Updated:
Are you want to change the password of your MySQL database, then keep your close attention in this tutorial as I am going to share how to change MySQL password using the command line.
Below is the code to change MySQL password. It will work with the MySQL 5.x versions. Open command window
or terminal if you are using Linux and execute the following few commands.
update user set password=PASSWORD('YOUR_NEW_PASSWORD') where User='root';
Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool tutorials.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari