update database password 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';