I have run the following commands found here.
mysql> FLUSH PRIVILEGES;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass'
But when I go to login as root, I can type any string as a password, and it will still let me login.
How can I enforce a password for root, and not allow anonymous users by simply typing