Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SSH Tunnel / Port Forwarding

$
0
0
In my opinion you are using a wrong connection string.
After forwarding your local port to the remote one through ssh, you must connect using "locahost", not "data".
More, MySql standard port is 3306, not 3307, so you should declare it in connection string.
So you should use
string connStr = "server=localhost;port=3307;database=db_name;uid=my_sql_username;pwd=my_sql_server_password;"; 
Hope this solves your problem,
Marco

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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