Does the output of this command give the same password on all lines?
SELECT Host, User, Password
FROM mysql.user
WHERE user='root';
Do you have a password installed for the user 'root'?
If not, try to set a password:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
(see:
https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html )