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