Accessing MySQL on VB.NET using MySQL Connector/Net, Part I: Introduction
Programming, VB.NET February 12th, 2009Introduction
Here comes again, tutorial about programming to access a database server. This tutorial shows you how to use Microsoft Visual Studio’s VB.NET to connect MySQL using MySQL Connector/Net.
I’m going to divide this article into 8 parts:
- Part I: Introduction
The post which you’re reading is the article’s index that has short description on each post. Also, information about MySQL Connector/Net and Hardware & Software environment that I use to complete the article. - Part II: Setup MySQL Server
This part shows how to install and configure MySQL Server on a database PC. - Part III: Install Sample Database
The part shows how to install an sample database on MySQL Server. The sample database that I use is world database. - Part IV: Create & Grant MySQL User Account
The part shows how to create a new user and grant privileges to certain database on the MySQL Server. - Part V: Install MySQL Connector Net
This part shows how to install MySQL Connector Net 5.2.5 on a development PC. - Part VI: Create Connection
This part shows how to establish a connection between VB.NET and MySQL. - Part VII: Perform SQL Operations
This is the main part of the article that shows how to perform some basic operations from VB.NET to MySQL. For instance, send query as SELECT, INSERT, UPDATE to a database. - Part VIII: Display Result on GUI
This part shows how to display the query data on GUI using datagrid.
Section
MySQL Connector/Net
MySQL Connector/Net enables developers to easily create .NET applications that require secure, high-performance data connectivity with MySQL. It implements the required ADO.NET interfaces and integrates into ADO.NET aware tools. Developers can build applications using their choice of .NET languages. MySQL Connector/Net is a fully-managed ADO.NET driver written in 100% pure C#. For more information about MySQL Connector/Net, see MySQL Connector/Net.
Back to top
Environment
Here is the list of the hardware and software that have already been setup in my environment.
- A Database PC
- Microsoft Windows XP SP3 (Clean Installation).
- MySQL 5.1.30 Community Edition (Free). I’m going to install it in Part II.
- A Development PC
- Microsoft Windows 2003 Server SP2 (Standard Edition). This is not a requirement, just my environment. You can use Windows XP if you want.
- Microsoft Visual Studio 2005.
Note: You don’t have to setup exactly environment as mine. For instance, you can setup all the software above in a single PC for ease of development.
Back to top
Related post
- Accessing MySQL on VB.NET using MySQL Connector/Net, Part V: Install MySQL Connector Net Install MySQL Connector Net From last 4 parts, I have prepared MySQL Server with sample database. I’ve done on a...
- Accessing MySQL on VB.NET using MySQL Connector/Net, Part IV: Create & Grant MySQL User Account Create & Grant MySQL User Account By default, the root account on MySQL Server has all privileges on every tables...
- Accessing MySQL on VB.NET using MySQL Connector/Net, Part III: Install Sample Database Install Sample Database You can download example databases for MySQL at http://dev.mysql.com/doc (Scroll down to Example Databases section). By the...
- Accessing MySQL on VB.NET using MySQL Connector/Net, Part II: Setup MySQL Server Setup MySQL Server This section I’ll show how to setup MySQL Server on a database PC. You can see index...
- Accessing MySQL on VB.NET using MySQL Connector/Net, Part VI: Create Connection Create Connection After I have prepared many things for showing how to access MySQL Server using VB.NET. Let’s see what...
Related posts:




July 27th, 2009 at 10:32 pm
How would I go about doing this without using the datagrid if I wanted to post the username etc. of a user in a label
October 29th, 2009 at 11:01 am
ado.net + MySQL connect/net ?
or
only MySQL connect/net ?
i need to connect my pockec wiht MySQL data base
(i have VB.net 2008 and MySQL Connect/net 6.2)
help
November 4th, 2009 at 11:28 am
Hi, Jose Miguel Castillo
MySQL Connector/Net is a fully-managed ADO.NET driver. I think you can follow my article.