mysql - Connecting SQL running on Vagrant machine through remote host? -


i trying connect emma mysql running on vagrant machine nginx remote location. server (host) has static ip can accessed through internet. has own running mysql instance can connect to. want connect vagrant's mysql remote location.

you need expose port of mysql server's running on vagrant public internet. there number of ways, simplest should configuring vagrant port forwarding.

since have mysql server running on host, need forward on (free) port default, example 6306:

vagrant.configure("2") |config|   config.vm.network "forwarded_port", guest: 3306, host: 6306 end 

you need explicitly specify port in connection url in emma.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -