Supplying root password to MySQL V8 sort of fails
Step 1 : Add below parameter in my.cnf file under [mysqld] section.
skip-grant-tables
Step 2 :  Restart MySQL instance.
Step 3 : Login MySQL instance. (This will not ask you password)
mysql -uroot -p
Step 4 : Reset root password.
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewRoot@123Pass';
Step 5 : Remove skip-grant-tables parameter from my.cnf file &amp; restart MySQL instance.
Step 6 : Now Login MySQL instance using root user &amp; new password.