Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to mySQL #7

Open
othmoz opened this issue Jun 19, 2012 · 3 comments
Open

Connect to mySQL #7

othmoz opened this issue Jun 19, 2012 · 3 comments

Comments

@othmoz
Copy link

othmoz commented Jun 19, 2012

How do you connect to mysql ? you haven't set an ip address nor a port forwarding like apache.
Can I overwrite settings in my Vagrantfile ?
I tried to do config.vm.network :hostonly, "33.33.33.10" or config.vm.forward_port 3306, 3333
but it doesn't seem to work

@othmoz
Copy link
Author

othmoz commented Jun 19, 2012

Ok my bad, config.vm.network :hostonly, "33.33.33.10" works, but still can't connect to mysql, which leads me to think that mysqld is only listening to localhost. How can we change that ?

@codecowboy
Copy link

Did you get remote MySQL connections working?

@michaek
Copy link

michaek commented Aug 9, 2012

I connected to MySQL using SSH tunneling instead of port forwarding, but I still needed to change my.conf to allow connections from localhost instead of the NAT IP address. YMMV, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants