“Add a reference to MySql.Data.dll” means you need to add a library reference to the downloaded connector. The IDE will link the database connection library with your application when it compiles.
Step-by-Step Example
I downloaded the binary (no installer) zip package from the MySQL web site, extracted onto the desktop, and did the following:
- Create a new project in Visual Studio
- In the Solution Explorer, under the project name, locate References and right-click on it. Select “Add Reference”.
- In the “Add Reference” dialog, switch to the “Browse” tab and browse to the folder containing the downloaded connector. Navigate to the “bin” folder, and select the “MySql.Data.dll” file. Click OK.
- At the top of your code, add
using MySql.Data.MySqlClient;
. If you’ve added the reference correctly, IntelliSense should offer to complete this for you.