default password for root in mysql code example
Example 1: mysql set root password
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
Example 2: default password of mysql
mysqladmin -u root password NEWPASSWORD
Example 3: ubuntu mysql-server default root password
sudo mysql --defaults-file=/etc/mysql/debian.cnf
Example 4: default password of mysql
mysql_secure_connection