how to connect remotely C# and Mysql ( HTTP tunneling ) using MySql Connector/Net 5.0.9 RRS feed

  • Question

  • 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: http://www.xyzpqr.com/SQLyogTunnel.php (for example)
    • Moved by Mike Dos Zhang Friday, October 29, 2010 6:42 AM the third party product (From:Visual C# General)
    Tuesday, October 26, 2010 5:20 AM

All replies

  • Hello,

    I didnot get your query?Is your MYSQL server in a remote pc from where your net pc is located? Also the url you have provided is not working.

    If you have your MySQL server located in a remote location then you can just modify the connection string and rest will be taken care by MySql Connector. Also see that you add correct reference of particular dll available in the Connector pacakage.

    Let me know what happens!




    Thursday, October 28, 2010 8:37 AM