Hi,
I am trying to connect MySQL from .NET. I have installed MySQL properly. Also I have installed .NET connector. But I am getting error "Unable to connect Server".
Thanks,
VIkram
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Feb 3, 2010, 10:49 PM EST
service mysql stop
service mysql start
service mysql restart
You can also use the following.
/etc/init.d/mysql start
/etc/init.d/mysql stop
VikramRank #9,295 · 208 reputationPosted Feb 3, 2010, 11:53 PM EST
Actually Database is working fine and also I tried start and stop of MySQL Service. My problem is that I can not connect it from .NET. It gives MySQLException that "Unable to connect server".
Thanks
VIkram
jitendra kumar94 reputationPosted Feb 11, 2010, 9:31 PM EST
http://ziya.suzen.net/2009/01/mysql-high-volume-connection-issue-when.html
and see the given link where a lots of connectionstrings are given there for different database.
http://connectionstrings.com/
VikramRank #9,295 · 208 reputationPosted Feb 12, 2010, 6:12 PM EST
I tried all option which you are given but still getting same error. Is there any other solution.
Kirtan PatelRank #292 · 8.6K reputationPosted Feb 12, 2010, 6:30 PM EST
can you post your Connection string here ...?
jitendra kumar94 reputationPosted Feb 13, 2010, 9:40 PM EST
http://www.sqlstrings.com/mysql-asp.net-connection.htm
http://aspnet101.com/tutorials.aspx?id=39