Hello when trying to change the password of root I am told that it does not meet the requirements and when I try to verify what the requirements are, it tells me that I must reset the password which I can not because of the previous problem.
The way I enter is through sudo mysql , the same thing happens with mysql -h localhost -u root -p
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
I already solved the problem, the syntax to change the password is different.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password AS 'MyNewPass';