1#First Login with administrative account (Even root itself)
2
3mysql> use mysql;
4mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD("NewPassword");
5mysql> flush privileges;
6
7#Now quit and login
8mysql> quit
9
10mysql -u root -p
11#Click enter and It will prompt you to enter password
12#Just to be safe you should also still try to log in without entering a password
1#Change or update mysql root password
2#Go to win cmd and cd into C:\Program Files\MySQL\MySQL Server 8.0\bin
3#Then type in the following: (password - current root password)
4mysqladmin -u root -p password newpass