Click here to Skip to main content
15,897,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i connect to a MySQL database through a proxy server
Posted

 
Share this answer
 
Comments
Dhrisya P Nair 16-Apr-12 3:25am    
NetworkCredential credential=new NetworkCredential("User","Password");
WebProxy proxy=new WebProxy("10.0.0.1",808);
proxy.Credentials=credential;

MySqlConnection conn = new MySqlConnection();conn.ConnectionString =
Host=192.168.0.10;port=3307;user=root;password=root";
conn.Proxy=proxy;
When iam using this code
conn.Proxy=proxy;
it shows that 'MySql.Data.MySqlClient.MySqlConnection' does not contain a definition for 'Proxy'
anybody plz help.........

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