I currently work with VB.NET and ASP.NET (using VB) with a MySql backend. I started to use the Free version of the CoreLabs dataprovider, but it had an 8 field limit in the free version. I then moved to the ByteFx (www.bytefx.com) data provider. It was free and being activly worked on for improvements. It has since been picked up by MySQL AB and is being made the offical .NET Data Provider (http://dev.mysql.com/downloads/connector/net/1.0.html). I have not attempted to use the new version since it is being released by MySQL (with the same original developer doing the work), but I am getting ready to start a new project and plan to make use of it.
Hi, i'm a beginner with the .net framework, but i'm trying to connect my app with mysql using the conector mysql-connector-net-1.0.4 but i dont know how i must configure it to get it work, could somebody help me please
1. Add a referece to the component in the project.
2. Import the name space:
3. I make my Connection string available to all code in my class:
CONST CONNECTION_STRING As String = "Data Source=servername;database=dbName;user ID=username;password=password"
4. Procedure to return DataSet:
Private Function GetOrdersAndDetails() As DataSet
Dim myConnection As New MySqlConnection(CONNECTION_STRING)
Dim myCommand As New MySqlCommand
Dim myAdapter As New MySqlDataAdapter
Dim myDS As New DataSet
myCommand.Connection = myConnection
myAdapter.SelectCommand = myCommand
myCommand.CommandText = "SELECT * FROM Customers"
Catch ex As Exception