Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim sqlinfo As String = ("Data Source=www.abc.com;Database=abc_db;User ID=abc_user;Password=abcpass;")
Dim con As MySqlConnection = New MySqlConnection(sqlinfo)



Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click

    Dim con As MySqlConnection = New MySqlConnection(sqlinfo)

    Try
        con.Open() 'Bağlantımı açıyorum
        Label5.Text = "OK"
    Catch ex As MySqlException
        Label6.Text = "HATA!"
        MessageBox.Show(ex.Message, "Hata Kodu : " & ex.Number.ToString, MessageBoxButtons.OK, MessageBoxIcon.Error)
    Finally
        con.Close() 'Bağlantımı kapatıyorum
    End Try


End Sub


I want login use my proxy for this connection. Because My sql host have firewall and I live in Turkey(Turkey network not static. So our ip's every time change when modem restart.) So I need dinamic ip adress. Now I must use my connection my proxy adress. My proxy specs= allow http and https. proxy software = squid.

Please Help me
Posted
Comments
Orcun Iyigun 28-Feb-13 6:20am    
Please check http://www.connectionstrings.com/mysql[^]. Maybe it can help you write your connection string. I dont think the problem is about you being in Turkey though.
robinex 28-Feb-13 6:23am    
I check this link before, I search on internet more than 2 week. I only found webbrowser proxy login system. But not work on my sql connection.
iismoove 2-Apr-13 23:24pm    
Check out this link from this site. It's in C#, but you can convert to VB.

http://www.codeproject.com/Questions/364054/How-to-connect-to-my-sql-through-a-proxy-server-us

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900