Connecting an ASP.NET MVC Application to MySQL
In this tutorial you are going to learn how to connect an ASP.NET MVC application to MySQL. We will also be creating a CRUD application that utilizes MySQL as data source and Entity Framework as object mapper. So let’s get started!
- Download and Install MySQL Installer 5.7 from this link: https://dev.mysql.com/downloads/windows/installer/
- After installation, open MySQL Installer then download the following softwares:
- MySQL Server (v5.7)
- MySQL WorkBench
- MySQL For Visual Studio
- MySQL Connector/NET
- After installation of above 4 softwares, make sure to verify by checking Programs & Features under Control Panel. Refer to the image bellow.
- After installation, open MySQL Installer then download the following softwares:
- Create a project. Go to Visual Studio -> File -> New -> Project.
- From the pop-up, make sure the following are selected. Click the “Ok” button when you’re done.
- In the next screen, make sure to select MVC. Click “Ok” button when you’re done.
- After the project is successfully created, we now add reference to…..
Click here to download the FULL TUTORIAL
Do you need help with a project? or have a new project in mind that you need help with?
Contact Me