## Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2019
- Install [MySQL Server 8.0.16](https://dev.mysql.com/downloads/mysql/)
- Install Complete [MySQL Connector.Net x86 8.0.16](https://dev.mysql.com/downloads/connector/net/)
- Install this custom repacked VSIX [MySQL Visual Studio ](https://github.com/jespersh/mysql-for-visualstudio2019/releases)
- If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd `devenv /updateconfiguration`, then manually execute that command in **Developer Command Prompt for Visual Studio 20xx** with run as administrator.
- Run this command ```Install-Package EntityFramework``` in Visual Studio Nuget package manager console
- Manage Nuget Packages > Search Mysql > install **Mysql.Data** *v8.0.16*
- Manage Nuget Packages > Search Mysql > install **Mysql.Data.Entity** *v6.10.8*
- Manage Nuget Packages > Search Mysql.Data.EntityFramework > install **Mysql.Data.EntityFramework** *v8.0.16*
- Comment the following kind of similar code from `Web.config` which is already added by the project
```xml
```
- Add this lines if its not automatically added after `````` tag in `Web.config` and rebuild solution
```xml
```
- Comment `` in `Web.config` as per below
```xml
```
- Even if doing all the above process some error occurs, then try uninstall nuget packages all the above added and ```UnInstall-Package EntityFramework``` uninstall visual studio plugin and connector net. Then rebuild fresh project, and add only ```Install-Package EntityFramework``` and then add references only *Mysql.Data* and *Mysql.Data.EntityFramework for EF6* and then add the provider xml in web.config as mentioned above and remove the white space between the `````` and `````` tags, and rebuild project and finally try to add model.
- This process is tested and working for .Net Framework 4.7.2 on Visual Studio 2019
## Helpers
- [Guide Fix](https://forums.mysql.com/read.php?174,673879,674195)