Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

How to connect to MySQL from VB.Net in console mode (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 1447


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>