Browsing all articles in Database

Changing the mysql root password

Posted Posted by Wes in Database     Comments No comments
Jan
20

I never can remember how to do this from the command line and the docs are just hazy enough to be a pain:

> mysqladmin -u root -p password <ENTER_NEW_PASSWORD>

And yes, that is “space-p-a-s-s-w-o-r-d” after the -p. Sending that tells mysql that you want to change the password to whatever is next. You’ll be prompted for the existing/old password:

Enter password: ********

blog Categories

about databasically

We live and work in Kansas City, USA.

We're passionate about helping small businesses succeed and want to help you use technology to get more done.

From server, desktop, network management to programming custom web applications in Ruby on Rails, we're here to lend a hand.

Contact us if you have any questions!