Try the following.
- Log in the Virtual Appliance and run the following command:
$ mysql -u root -p -e "grant all privileges on *.* to 'root'@'%' identified by 'bitnami'";
Then edit the /opt/bitnami/mysql/my.cnf file and remove the following line. You can edit with "nano":
bind-address = 127.0.0.1
Run the following command to open the 3306 port for the Virtual Appliance firewall:
$ sudo ufw allow 3306
That's all, you should be able to connect to the database using the user "root" and the password "bitnami". I hope it helps.