Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Website MySQL Connection through Firewalls (no replies)

$
0
0
Hi everyone,

I'm trying to establish a connection to a remote MySQL database using C#/.NET. I have my firewalls up, so it is necessary to create a tunnel. I am able to create the tunnel and connect into the remote database on the web server PC, but when I reference the tunnel in my code (I currently have it as localhost:3391), the website is still unable to create the connection. I get the following error:
"Unable to connect to any of the specified MySQL hosts."

Are there special ports to use for source and destination in my tunnel profile when trying to access MySQL through the web? And if so, how do I reference the connection in my code?

Thanks so much,
Laura

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>