How to Add MySQL.Data.dll in VB.Net

Submitted by: 
Visitors have accessed this post 158 times.

When declaring MySQL Class in the system that you have made, you might encounter an error if you don't add MySQL.Data.dll as references. So, in this tutorial I will teach you how to add MySQL.Data.dll in VB.Net. With the help of this method you can access MySQL library.

Before we start, download MySQL Connector and install it in your machine.

Step 1

Open a Microsoft Visual Studio 2018 and create a new windows form application.
msql1

Step 2

Go to the solution explorer, right click references and add reference.
msql2

Step 3

Select browse in the side bar and select Browse button.
msql3

Step 4

Find MySQL folder in c: drive.
mysql4

Step 5

Inside MySQL folder, select MySQL Connector.
mysql5

Step 6

Inside MySQL Connector, select assemblies/v4.5.2 and add MySQL.Data.dll.
mysql6

Step 7

Hit ok.
mysql7

Output

mysql7

For more question about this article. You can contact me @
Email – [email protected]
Mobile No. – 09305235027 – TNT
FB Account – https://www.facebook.com/onnaj.soicalap


Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.