TOP NEWS

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas mattis nisi felis, vel ullamcorper dolor. Integer iaculis nisi id nisl porta vestibulum.

Rabu, 17 April 2013

Working With MySQL to Visual Studio 2010

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. Download here
  • MySQL admin tools – These tools enable you to work with MySQL through a GUI. Download here
  • MySQL Connector - Install MySQL connector for .NET which is basically a .Net library to support MySQL. Download here
  • Optional (clusterworkbench 5.2mysql-proxy)
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.gifThose 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.

0 komentar: