how to update password in database mysql code example
Example: mysql change password
UPDATE mysql.user SET authentication_string=PASSWORD("rootpass") WHERE User='root';
UPDATE mysql.user SET authentication_string=PASSWORD("rootpass") WHERE User='root';