Recommend you add this to the MySQL part… The installation will not prompt for a root pwd, so you have to do this after starting:
sudo mysqld_safe --skip-grant-tables&
sudo mysql --user=root mysql
mysql> update user set authentication_string=PASSWORD('new-password') where user='root';
flush privileges;
quit
sudo service mysql restart
sudo mysql -u root -p
exit
Then it is a good idea to get in the habit of running this:
sudo mysql_secure_installation
This will prompt to rest the root password, remove remote root login, remove test databases, etc.