With MySQL 5.7, if you run mysqld --initialize yourself, for a new database, it will generate a random root password and put it in the log (users will be required to change this password on first login), but the normal package installation will either set unix socket authentication or a password chosen during configuration.
With MySQL 5.7, if you run mysqld --initialize yourself, for a new database, it will generate a random root password and put it in the log (users will be required to change this password on first login), but the normal package installation will either set unix socket authentication or a password chosen during configuration.