SQL

From Hack Sphere Labs Wiki
Revision as of 15:41, 10 October 2013 by Webdawg (talk | contribs) (SQL Reset Password of User)

Jump to: navigation, search

SQL Reset Password of User

mysql -u root -p

SQL

SET PASSWORD FOR 'user'@'host' = PASSWORD('newpass');

or

UPDATE mysql.user SET Password=PASSWORD('newpass') WHERE User='user' AND Host='host';

then

FLUSH PRIVILEGES;
exit