Access mysql on guest from host
-
edwardlynn
- Posts: 5
- Joined: 25. Jun 2009, 15:18
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu server
Access mysql on guest from host
I'm running vista as host, ubuntu as guest. Mysql is running fine on the guest, but i cannot access it from host. I have a user which has perms to access from any host. I cannot however access it, and i've read some bits on the net where people are saying they have set up some port forwarding or something. Can anyone give me any clues as to where to start on this issue please?
Thanks
Ed
Thanks
Ed
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Access mysql on guest from host
Section 6.4 of the VBox users guide covers this. Actually all of section 6 should be your starting place.
If you do not have a real reason to use NAT you should consider using Bridged and your problems should taken care of. This more closely resembles a network environment IMHO.
If you do not have a real reason to use NAT you should consider using Bridged and your problems should taken care of. This more closely resembles a network environment IMHO.
-
edwardlynn
- Posts: 5
- Joined: 25. Jun 2009, 15:18
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu server
Re: Access mysql on guest from host
I am actually using bridged, and can ping the guess os ip.
Thanks
Thanks
Re: Access mysql on guest from host
Is the mysql user allowed to access the DB ? (ea. user@%), firewall ?
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
edwardlynn
- Posts: 5
- Joined: 25. Jun 2009, 15:18
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu server
Re: Access mysql on guest from host
I had a firewall switched on on the host os, but switching it off didn't fix the issue. No idea about ubuntu servers default setup though, i'll have to have a dig in the docs or something for that one.
The user does have access.
The user does have access.
Re: Access mysql on guest from host
As far as I've read linux filewalls any port above 1000.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
edwardlynn
- Posts: 5
- Joined: 25. Jun 2009, 15:18
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu server
Re: Access mysql on guest from host
So that would include mysql then? on 6603 by default i think is it?
Re: Access mysql on guest from host
Mysql sits on port 3306.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: Access mysql on guest from host
Most linuxes does not firewall ports.
But mysql usually only talks with localhost.
Check in /etc/my.cnf after a line
skip-networking
and comment that out then restart mysql
But mysql usually only talks with localhost.
Check in /etc/my.cnf after a line
skip-networking
and comment that out then restart mysql
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
-
edwardlynn
- Posts: 5
- Joined: 25. Jun 2009, 15:18
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: Ubuntu server
Re: Access mysql on guest from host
Thanks for al your help. It was caused by mysql now binding to localhost by default. Removed bind-address from my.cnf and restarted and its sorted. Sweet.