I have Ubuntu 10.04 as host machine and Ubuntu 10.10 as guest machine installed in VirtualBox.
I had success on port forwarding to connect to Apache of guest machine, so that now I can open in host machine web sites published in Web Server(Apache) of guest machine.
I need to do the same with MySql, i.e. access MySql of guest machine from host machine.
In order to achieve this goal I am executing following commands in host machine:
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/HostPort" 3307 VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/GuestPort" 3306 VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/Protocol" TCP
where Ubuntu is the name of the host machine.
Guest machine loads and when I try to connect to MySql from host machine it can not connect to it.
What could be the problem here?