Click here to Skip to main content
12,071,956 members (60,245 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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 1:10am
Orcun Iyigun 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 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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2016
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