Nick Karnik
Nick Karnik
Author

Computer Scientist | Hacker | Entrepreneur | Ex-Microsoft | YC

Share


Twitter


How to change mysql root password?

The syntax for setting and changing passwords

Nick KarnikNick Karnik

First time you want to set a root password, use the following:

mysqladmin -u root password NEWPASSWORD

If you want to change the root password, use the following:

mysqladmin -u root -p oldpassword newpass