I have the same problem. It looks like it is something wrong with the ForwardedPortLocal. I am able to connect to my MySql server when OpenSSH is running, so I am sure my connection string is OK. I'm also able to "redirect", for example, localhost:777 to google.com:80 using ForwardedPortLocal. But I dont know how to use ForwardedPortLocal together with MySql. I tried all the examples I found on the net but without success.
The error is:
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
w MySql.Data.MySqlClient.NativeDriver.Open()
w MySql.Data.MySqlClient.Driver.Open()
w MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
w MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
w MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
w MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
w MySql.Data.MySqlClient.MySqlPool.GetConnection()
w MySql.Data.MySqlClient.MySqlConnection.Open()
The error is:
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
w MySql.Data.MySqlClient.NativeDriver.Open()
w MySql.Data.MySqlClient.Driver.Open()
w MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
w MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
w MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
w MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
w MySql.Data.MySqlClient.MySqlPool.GetConnection()
w MySql.Data.MySqlClient.MySqlConnection.Open()