I was facing a problem, from few days i.e. whenever I tried to connect to Mysql database a message appears, Unable to connect to mysql host. I was using mysql connector for dot net. My connection string was also correct, according to connection-strings site. I had also added Mysql port (3306) in windows firewall, but still the problem persist.
After doing some RND, I saw a post in which it was highlighted that this issue, may be appeared because of Winsock2 corruption. To repair Winsock I used netsh winsock reset command at the command prompt, and then press ENTER. After restarting my notebook, mysql connection starts working.
For detail click here. Thank You.
No comments:
Post a Comment