Cannot login to MySQL database after fresh install with root ID and empty/no password like other older MySQL versions do
It seems things were designed to avoid developers to se the root user, a better solution would be:
sudo mysql -u root
Then create a normal user, set a password, then use that user to work.
create user 'user'@'localhost' identified by 'user1234';
grant all on your_database.* to 'user'@'localhost';
select host, user from mysql.user;
Then try to access:
mysql -u user -p
Boom!