Hi
How to create connection to MySql using c#
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 2, 2011, 4:00 AM
http://www.connectionstrings.com/mysql
VulpesPosted Sep 2, 2011, 8:38 AM
Jagjit SainiPosted Sep 2, 2011, 7:03 AM
string
It is giving error after giving Port=80 : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
How Port number is given , so that it should not give any problem.
Thanks
ConnectionString = "SERVER=localhost;DATABASE=hr_mysql;Port=80;Persist Security Info=False;uid=jagjit@localhost";VulpesPosted Sep 2, 2011, 6:52 AM
Jagjit SainiPosted Sep 2, 2011, 6:33 AM
string ConnectionString = "SERVER=localhost;DATABASE=hr_mysql;uid=root@localhost;password=''";
But it is giving error message Access denied for the user @localhost to database ha
Thanks
VulpesPosted Sep 2, 2011, 5:47 AM
As you're in India, I'd choose one of the mirror sites in Asia, say the National Taiwan University.
Jagjit SainiPosted Sep 2, 2011, 5:37 AM
Which mirror site should be selected.
Thanks
Vilas GitePosted Sep 2, 2011, 5:36 AM
Hi!
Refer: http://www.c-sharpcorner.com/UploadFile/mahesh/81/
----------------------------------------------------------------------------
If this reply helps your post…then check "This is correct answer"
VulpesPosted Sep 2, 2011, 5:32 AM
I'd use one of those provided by MySql itself, say the ADO.NET driver:
http://www.mysql.com/products/connector/
Jagjit SainiPosted Sep 2, 2011, 5:25 AM
Satyapriya NayakPosted Sep 2, 2011, 4:06 AM
Please refer our recommended articles section.
Thanks