Link to home
Create AccountLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

mysql change password; without locking root out

windows mysql

I have no phpadmin access

I have access to mysql commandline and mysql workbench query editor


I want to change (add) the password

there is currently no password

but last time I tried
https://www.experts-exchange.com/questions/28031150/I-think-I-deleted-my-databases-in-wamp.html
I got error

I locked root out and couldnt see my databases
ASKER CERTIFIED SOLUTION
Avatar of Kailash Aghera
Kailash Aghera
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of rgb192

ASKER

mysql> update user set password=PASSWORD("NEWPASSWORD") where User='USERNAME';

I want to change my password to
'pass'
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of rgb192

ASKER

thanks