mysql_updatepass
This is an old revision of the document!
Changing a users password
1 |
UPDATE mysql.user set Password=PASSWORD( 'newpassword' ) WHERE User= 'user' AND Host= 'x.x.x.x' ; |
You are also able to use the following command, this will change the password for ALL users with the matching username, so you do not have to declare the host:
1 |
update mysql.user set password=PASSWORD( 'mynewpassword' ) where User= 'luke' ; |
mysql_updatepass.1428186396.txt.gz · Last modified: 2024/05/23 07:26 (external edit)