use mysql;
update user set authentication_string = password('root'), password_expired = 'N', password_last_changed = now() where user = 'root';
flush privileges;
grant all privileges on *.* to 'root'@'localhost' identified by 'root';
flush privileges;
quit;