Skip to content

Change a User’s Password in MySQL

Log in to the database as root and do the following:


mysql> USE mysql;
mysql> UPDATE user SET password = password('newpassword')
WHERE User='username';
mysql> FLUSH PRIVILEGES;

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*