The following code is used to connect C# with mysql server
connectionParam = "SERVER=" + DbServer + ";DATABASE=" + dbName + ";UID=" + uName+ ";PASSWORD=" + pass;

MySqlConnection mConnection = new MySqlConnection(connectionParam );

But what will be the code, if MySql can only be accessed through HTTP Tunneling.

Tunneling URL: (for example)

Recommended Answers

All 2 Replies

Your link doesn't work. but most probably it will still use the same method you are using now. the only thing you need to be aware is to resolve the server address before you pass the connection string to the connection string build / before you open the connection.

i am facing the same problem and don'tknow how to call the SQLyogTunnel.php functions.
Did you find a solution meanwhile ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.