Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir,

I am doing one web based application.

I want to connect asp.net to mysql server.
When I am connecting one error is showing i.e "unable to connect to any of the specified mysql hosts".
My connectionstring is
add connectionString="Persist Security Info=false;Server=10.97.0.98;Port=3306;uid=aa;pwd=1;Database=bb;CharSet=utf8;pooling=false"

I have installed .net connector 5.2 in development system.

Do I have to install that in server?

Please help me

Thank you
Sujith
Posted
Updated 6-Apr-11 22:51pm
v2
Comments
Dalek Dave 7-Apr-11 4:51am    
Edited for Grammar and Readability.

If the server is local then try replacing 10.97.0.98 with localhost
 
Share this answer
 
Comments
Dalek Dave 7-Apr-11 4:51am    
Good Call.
Here are some checks that you might want to do.

1. Check that mysqld process is running.
2. Verify the IP, server, and db, and if account if it has access to the db.
3. Check the event viewer for the detailed error.
 
Share this answer
 
Comments
Dalek Dave 7-Apr-11 4:52am    
Good 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