default password for user root mysql linux code example
Example 1: ubuntu mysql-server default root password
sudo mysql --defaults-file=/etc/mysql/debian.cnf
Example 2: what is default mysql database password in linux
$ sudo apt install mysql-server
$ sudo cat /etc/mysql/debian.cnf