Click here to Skip to main content
16,020,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 1 windows application formed by C# in visual studio 2008.in my coding i execute the program means i got output.but i create .exe file for my project and install my system then i run means i got error unable to connect to any of the specified mysql hosts.my back end is mysql database accessing through server system.
my connection string is:

con = new MySqlConnection("server=192.168.1.37;database=eyecare;user=admin;password=12345");

error:unable to connect to any of the specified mysql hosts

please help me any one.
Posted
Updated 2-Dec-12 22:14pm
v2

Hi,

I think the best way to connect on MySQL database, was to use a mysql connector for ADO.NET here is the link: http://www.mysql.com/products/connector/[^]

I hope this helps..

Thanks,

Joven
 
Share this answer
 

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