how can i modify these error ??? let me know pls ........

Posted by Chanti444 under ASP.NET on 11/2/2011 | Points: 10 | Views : 929 | Status : [Member] | Replies : 3
how can i acess other system mysql database using with .net .........
iam using connection string is

MySqlConnection MyConString = new MySqlConnection("SERVER=//192.168.1.51;" +
"DATABASE=mahesh;" +
"UID=mahesh;" +
"PASSWORD=mahesh;");

getting error ::Unable to connect to any of the specified MySQL hosts.

can u tell me what should i wrong here ..........

satya


Responses

Posted by: Hmanjarawala on: 11/2/2011 [Member] Bronze | Points: 25

Up
0
Down
try this

MySqlConnection MyConString = new MySqlConnection("SERVER=192.168.1.51;" +
"DATABASE=mahesh;" +
"UID=mahesh;" +
"PASSWORD=mahesh;");


Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Chanti444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chanti444 on: 11/2/2011 [Member] Starter | Points: 25

Up
0
Down
hi, i wrote what u said but getting same error .............like my connection string

MySqlConnection MyConString = new MySqlConnection("SERVER=192.168.1.51;" +
"DATABASE=mahesh;" +
"UID=mahesh;" +
"PASSWORD=mahesh;");

error:::::::::::Unable to connect to any of the specified MySQL hosts.
i cant understand what should i wrong here.........

satya

Chanti444, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 11/2/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

go to that system select right click and copy paste connection string

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Chanti444, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response