SIGN UP MEMBER LOGIN:    
ARTICLE

Working With MySQL to Visual Studio 2010

Posted by Arjun Panwar Articles | Databases & DBA December 27, 2011
Here we present the connectivity to MySQL from Visual Studio 2010.
Reader Level:

Create .NET applications using C#/Visual Basic with connecting to MYSql database. MYSql connector is responsible for creating necessary ADO.Net interfaces and integrations to ADO.Net tools.

Requirements

  • Visual Studio 2010.
  • MySQL database – We have to install MYSql community server which is the freely available version of the MySQL server.
  • MySQL admin tools – These tools enable you to work with MySQL through a GUI.
  • MySQL Connector - Install MySQL connector for .NET which is basically a .Net library to support MySQL.

First build Database applications

img 1.gif


Choose a data source in the configuration wizard.

img 2.gif

Choose a Database Model in the following step.

img 3.gif

Then choose the Data connection.

img 4.gif

We have to look different Data connection choose one of them.

img 5.gif

After choose the connection add the connection and test the connection.

img 6.gif

After test connection succeeded show my connection name which we have to connect to it.

img 8.gif

Click the next and save the connection string to the application.

img 9.gif

Click next and choose the database tables.

img 10.gif

Those are the steps to connect a MySQL database to our .Net application. After creating the connection we can use it to display, store and manipulate data in our application.

Resources 

Here are some useful related resources:

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor