Notes: I am running Ubuntu 14.04 and have recently started to use
scotch-box because of it's simplicity
Here is additional information that may help provided by scotch-box
<https://lh3.googleusercontent.com/-KQA2iGa_Iok/VWzjWy3YvCI/AAAAAAAAAAc/CJY9OgqP5-Q/s1600/Selection_003.png>
I am trying to connect to a remote mysql DB, the DB is hosted on a remote
server, I am using vagrant/scotch-box I have tried to use putty(as I have
done in the past on my windows desktop) and type in the remote server ssh
info then go to SSH->Tunnels and enter 8989 as my source port and
mysql-user:3306 as my destination (local and auto boxes selected)
<https://lh3.googleusercontent.com/-2pSoOppngxk/VWzixnVs3oI/AAAAAAAAAAM/_ecVTDSo-l4/s1600/Selection_001.png>
I have also tried to connect via command line(as I have previously done on
my mac laptop) with no success using the below command
ssh my_user_name@my_server -L 8989:mysql-user:3306 -N
This is how I connect to the database in my php application
<https://lh3.googleusercontent.com/-zWeXEh1OQ90/VWzi6uIJ7AI/AAAAAAAAAAU/FLbyWRcfNSM/s1600/Selection_002.png>
I can understand why this doesn't work because the application is running
on the virtual machine and not my local computer.
I have tried the command above while ssh into the virtual machine
I have also tried changing the local port when connecting in putty with no
success.
Any insight is greatly appreciated.
Thank You!
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.