Friday, January 6, 2012

Using MySQL with asp.net using visual studio 2010

If you want to use MySQL as database with asp.net using VS 2010, you need to follow following steps.
1.   Install MySQL.(Download)
2.   Prepare database.
2.   Install MySQL connector(Download) for .net.
3.   Now create a new web project or open a web project, right click the project name, click on add reference option,  from .NET tab select MySQL.data version (version of your downloaded MySql connector) and select runtime as v4......
4.   Connection detail will be added into web.config file.
5.  Now you can MySQL with your ASP.NET application like any other database connection.


No comments:

Post a Comment