Click here to Skip to main content
11,705,617 members (50,024 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
Dim sqlinfo As String = ("Data;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)
        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)
        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 28-Feb-13 0:10am
Orcun Iyigun at 28-Feb-13 6:20am
Please check[^]. Maybe it can help you write your connection string. I dont think the problem is about you being in Turkey though.
robinex at 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 at 2-Apr-13 23:24pm
Check out this link from this site. It's in C#, but you can convert to VB.

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

  Print Answers RSS
0 OriginalGriff 229
1 Sergey Alexandrovich Kryukov 100
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100