VB.NET MySQL Connection String
Posted by: Elvira Trösch
Date: October 06, 2004 08:27AM

I'm trying to open the connection to a mysql database via VB.Net. But it don't works.

I tried for example:

*1*********************
Dim sConnectionString As String _
= "Initial Catalog=shop;Data Source=localhost"
Dim objConn As New MySQLConnection
objConn.Open()
=> It don't knows "MySQLConnection. And I can't import CoreLab.MySql, ByteFX.Data.MySQLClient or eInfoDesigns

*2****************************
Dim sConnectionString As String _
= "Provider=MySQLProv;SERVER=localhost;DATABASE=shop
Dim objConn As New OleDbConnection(sConnectionString)
objConn.Open()
=> can't open objConn

*3****************************
Dim sConnectionString As String _
"Provider=SQLOLEDB;Data Source=(local);Initial Catalog=shop;Integrated Security=SSPI"
Dim objConn As New SqlConnection(sConnectionString)
objConn.Open()

Options: ReplyQuote


Subject
Written By
Posted
VB.NET MySQL Connection String
October 06, 2004 08:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.