Enter your email address:

Delivered by FeedBurner

How to set / Change root password in mySQL


StumbleUpon Toolbar

When you first install MySQL you need to set a password for root to be sure nobody is going to access your Databases.

If your MySQL is a fresh installation you will need this command

mysqladmin -u root password newpassword

This is used when there is no previous password, if what you need is to change a password already set, you will need this other command.

mysqladmin -u root -p oldpassword newpassword

And finally if you want to change some other's password (not root) use this command

mysqladmin -u someuser -p oldpassword newpass

Trackback URL for this post:

http://www.go2linux.org/trackback/165
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting