UPDATE mysql.user SET Password=PASSWORD('222') WHERE User='root'; code example
Example: mysql admin u root p password change password
#Change or update mysql root password
#Go to win cmd and cd into C:\Program Files\MySQL\MySQL Server 8.0\bin
#Then type in the following: (password - current root password)
mysqladmin -u root -p password newpass