A random root password is generated and logged in log /var/log/mysqld.log
sudo cat /var/log/mysqld.log | grep -i password
2020-06-02T17:39:23.434297Z 1 [Note] A temporary password is generated for root@localhost: Cu=aizr-k2ix
Change root password
SET GLOBAL validate_password_policy = 0;
(in case you want to keep less strict password. It should be avoided in production environment)ALTER USER 'root'@'localhost' IDENTIFIED BY 'somepassword';