Accessing a remote MySQL database over SSH in .NET???
Posted on 2007-08-08
I am trying to access a remote MySQL database in ASP.NET. Normally, to access the database, i manually SSH to the server and then login to MySQL. However, i am not sure how to do that through code.
It would be nice if i could just create a connection string like:
Dim myConnectionString As String = _
"server=192.168.xx.xxxx;" & _
"Database=TestDB;" & _
"User ID=username1;" & _
But that won't work because i haven't first created an SSH connection. Is there a way to create an SSH connection in .NET before connecting to a remote database?.