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

Unable to connect to any of the specified MySQL hosts (1 reply)

$
0
0
Hi,

I'm trying to develop a program in C# using connector/.NET that will access a MySQL database remotely, connecting through an SSH tunnel. I've been using the tutorial at http://georgelantz.com/2007/09/10/access-mysql-through-ssh-tunnel-in-a-windows-net-application/ but I am getting the error "Unable to connect to any of the specified MySQL hosts". It's showing an InnerException that says "No connection could be made because the target machine actively refused it 127.0.0.1:3306". I've been using port 3306 which I have had success with using MySQL workbench to connect from this same machine through an SSH tunnel. I'm developing the program on a windows 7 machine. Any help with this would be greatly appreciated.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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