Click here to Skip to main content
12,945,800 members (38,799 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
    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 28-Feb-13 0:10am
robinex209
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,899
CHill60 3,180
Maciej Los 2,453
Jochen Arndt 1,910
ppolymorphe 1,785


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