I'm trying to use this statement
Imports MySql.Data.MySqlClient
in VB.NET to get the objects to work with a MySQL database.
I get a build error because the MySQL package doesn't exist. However, I tried a couple different things to try to get it installed.
I followed the instructions on the Oracle/MySQL site to install the .NET connector: https://dev.mysql.com/doc/connector-net/en/connector-net-installation-windows.html However, the installer only has a (x86) version and MySQL is 64-bit, so the installer puts the connector under the Program Files (x86) and not with the other MySQL files. When I go to the References in Visual Studio, there is no MySQL option. I don't think it can find things in the (x86) folders.
I followed the step by step example here: https://dev.mysql.com/doc/connector-net/en/connector-net-installation-windows.html. I downloaded the zip and unzipped it, then went to Add Reference -> Browse and selected MySQL.Data. But then when I go to build the program, I get a build error and again the Reference doesn't exist.
What am I doing wrong? Or is there some other way to install the connector for 64 bit newer versions of MySQL?