What is the default password for mysql, installed in Ubuntu18.04 apt?

apt

I installed mysql server, with apt and I was not prompted to enter my root password during the installation process, so what is the default?

Apr.07,2021

the mysql installation process has an interactive operation that lets you enter your root password, which should be empty if you don't enter it (probably by turning off the interactive option for apt and skipping the interactive operation).

in addition, I remember that the default mysql of ubuntu 18.04 is 5.7. I remember that mysql 5.7 should automatically generate a password. In the / var/log/mysqld.log log file (or look for it in / var/log/mysql/*.log if not), there should be

printing a default password.
Menu