Differences
This shows you the differences between two versions of the page.
docs:mysql:change_password [2007/03/19 17:09] – created billh | docs:mysql:change_password [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Change MySQL Password ====== | ||
+ | < | ||
+ | mysql -u root -p | ||
+ | <enter your password> | ||
+ | SET PASSWORD [FOR user] = PASSWORD(' | ||
+ | |||
+ | </ | ||
+ | * no FOR clause: sets the password for the current user | ||
+ | * only clients that have the UPDATE privilege for the database can do this | ||
+ | * The user value should be given in user_name@host_name | ||
+ | SET PASSWORD FOR ' | ||
+ | </ | ||
+ | * also look at using phpmyadmin: http:// |