You are here:

MS SQL Server/Retieving the Data from MySQL Server to Window Application Form


I have to create window application in & MySql server

Mysql server is on remote host, Now I have to retrieve the data forn remote mysql server.
while connecting to localhost in this line server = "localhost" the dabase is connected but when connect remote mysql host by writing the IP like  server = ""; its show the error :
Unable to connect to any of the specified MySQL hosts.

Hello Ranjana,

You can try connection strings details from this page:

The error means either the IP is not in the same network (not within reach) or there's something wrong with the query string. Is there any port in use on that server?

I would suggest to try best match for your need from the page mentioned above.

Feel free to follow-up.


MS SQL Server

All Answers

Answers by Expert:

Ask Experts


Jwalant Natvarlal Soneji


From general queries about SQL Severs both 2000 and 2005 to advanced features like Integration Services and Reporting Services.


Experience in the area: I have been working with database triggers, stored procedures, views, function, joins, dts, Query optimization. Education/Credentials: BE IT - 2005 Batch with First Class.


BE IT, India

Awards and Honors

©2016 All rights reserved.