How to connect to MySQL from VB.Net in console mode
Posted by: Rob Borland
Date: March 20, 2017 02:22PM

I'm trying to connect to MySQL from VB.Net in console mode. I have installed Connector/NET from MySQL.

When I try to create a MySqlConnection object the VBC compiler reports that MySql.Data.MySqlClient.MySqlConnection is not defined.

All the advice I can find appears to be directed to configuring Projects in Visual Studio but I don't want to use Visual Studio.

For example, there is advice to reference the connector DLL in the Visual Studio Project specification but I don't know how to implement this advice using VB in console mode without Visual Studio. Similarly, there is advice to copy the MySql.Data.dll to the bin directory of the application. I have tried copying MySql.Data.dll from the Connector/NET assemblies directory to the Microsoft.NET\Framework64 directory, but this doesn't help.

I would appreciate any advice.

Options: ReplyQuote

Written By
How to connect to MySQL from VB.Net in console mode
March 20, 2017 02:22PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.