I am developing a .Net application that requires a ODBC connection to an external vendor’s MySQL database. The issue is that while doing development I cannot access this ODBC connection from my development machine. I have access to a remote server that can connect to the database. Is there a way to create a connection string on machine A (my dev machine) that can use the ODBC connection from machine B? I really want to avoid having to use this remote server for my actual development.
2
Answers
why not connecting to local sql server,or use entity framwork
Generally speaking, if you have 3 machines A,B,C
A has no access to C which it needs
B has access to C
A has access to B
you can set up a reverse-proxy server on B which will act as a mediator between A and C.
Now, in your scenario you can set up the reverse-proxy on your so called "remote server" and redirect the MYSQL traffic. Then set up the ODBC connection on your local machine to the "remote server" as if you were connecting to the MYSQL directly.
Depending on the possible limitations of your environments you are dealing with, this may or may not got smoothly, but that is the general idea.