Firstly you must download the MySQLConnection NET from here.
Then you need to add MySql.Data.DLL to MSVisualStudio like this:
- Open menu project
 
- Add
 
- Reference
 
- Browse to C:\Program Files (x86)\MySQL\MySQL Connector Net 8.0.12\Assemblies\v4.5.2
 
- Add MySql.Data.dll
 
To use in the code you must import the library:
using MySql.Data.MySqlClient;