MySQL port forwarding

Posted by Eduard Luca on Ask Ubuntu See other posts from Ask Ubuntu or by Eduard Luca
Published on 2012-12-04T10:46:18Z Indexed on 2012/12/04 11:27 UTC
Read the original article Hit count: 293

Filed under:
|

I am trying to help a colleague to connect to my MySQL server. However the situation is a bit special, and here's why (let's call him person A and me, person B):

Person A has a PC, on which he has a virtual machine, which is in the same network as the actual PC he's running. However person A is also in the same network with person B (a different network).

I want the site that lives on A's VM to be able to connect to the MySQL server on B's PC. For this I've thought a port forwarding would be appropriate: from ip-of-person-A:3306 to ip-of-person-B:3306. This way the site would connect to the IP of the PC it's living on (not the VM), which would forward to A's MySQL.

I've seen several examples of port forwarding, but I don't think it's what I need, from what I've seen, it's kind of the opposite. So would something like this be achievable?

© Ask Ubuntu or respective owner

Related posts about mysql

Related posts about port-forwarding