Developers community number 1 connection string reference

MySQL Connector/Net

This is a .NET Framework Class Library provided by MySQL.
The class library is contained in the file MySql.Data.dll.
Coding
Add a reference to the assembly MySql.Data and include the MySql.Data.MySqlClient namespace. Instantiate a new MySqlConnection connection object. Set the connection string and open the connection.


   VB.NET code sample
Imports MySql.Data.MySqlClient
Dim myConnection As MySqlConnection = New MySqlConnection()
myConnection.ConnectionString = myConnectionString
myConnection.Open()
//execute queries, etc
myConnection.Close()


   C# code sample
using MySql.Data.MySqlClient;
MySqlConnection myConnection = new MySqlConnection();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
//execute queries, etc
myConnection.Close();


Description
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. Connector/NET is a fully managed ADO.NET driver written in 100% pure C#.
More info about this class library can be found at the MySQL product page.
Connection Strings
The MySQL Connector/Net class library can be used to connect to the following data sources.

To see the available connection options, navigate to the connection strings reference by clicking the data source link.
Additional info or comments on this class library? Want to submit content?

Send an e-mail to
Copyright © 2010 ConnectionStrings.com   |   All Rights Reserved   |   Powered by CSAS   |   Send feedback, articles, requests and more connection strings here.