Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
    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 1:10am
robinex175
Comments
Orcun Iyigun at 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 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.
 
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
0 OriginalGriff 406
1 Marcin Kozub 225
2 Sergey Alexandrovich Kryukov 205
3 /\jmot 175
4 Shweta N Mishra 161
0 OriginalGriff 8,289
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,624
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
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