beta.blog

MySQL: Change User Password

by on Apr.09, 2011, under Programming

It’s always a good idea to regularly change the password of your MySQL user accounts. I’ve found several ways showing how to do that, but many of them didn’t work properly at all. It costed me quite a lot of effort and time, the overall solution has took me about a half hour time, even though the solution is really simple.

So here’s how to change the password of a MySQL user:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');

A simple but effective way to change a user’s password, in my case it’s the user root.


Leave a Reply

*

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!