First of all, follow this steps: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04
Its necessary to set a root password
- Stop MySQL
sudo /etc/init.d/mysql stop
- Change mysql's inicialization file
/etc/init.d/mysql:109 -> --skip-grant-tables