I have a mysql database on a remote linux server. I want to access that mysql database from my local pc with a winforms application. But I dont want to give permission to remote connection from server settings using my local ip address.
I am able to connect my local mysql database like this :
local_builder = new MySqlConnectionStringBuilder();
local_builder.Server = local_host;
local_builder.UserID = local_username;
local_builder.Password = local_password;
local_builder.Database = local_dbname;
local_conn = new MySqlConnection(local_builder.ToString() );
I want to know if there is a way to make a ssh connection to my remote host , then connect to remote db with a code like above using that ssh tunnel .