ubuntu mysql 8 set root password code example Example: ubuntu mysql-server default root password sudo mysql --defaults-file=/etc/mysql/debian.cnf