Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

provider is not registered

Status
Not open for further replies.

cp84

Programmer
Apr 2, 2003
11
0
0
GB
I would like to connect to a MySQL database running on a Linux machine called pigster, so on my vb.net development machine running win2000 I have set up a system dsn use MySQL ODBC 3.51 Driver called GilstoneMySql, and set up grants in MySQL all Tested ok.

In vb.net the connection string is
conStr = "Provider=GilstoneMySql;" & _
"Data source=pigster;" & _
"Database=Gilstone;" & _
"uid=harry;pwd=ueu8dyY9;"
same as in dsn

The following code is:
Dim OLEDBConnection As New OleDbConnection(conStr)
OLEDBConnection.Open()

This throws an error "The 'GilstoneMySql' provider is not registered on the local machine"

Is this possible to achieve? or are there better ways of doing it.

Many thanks for any help
 
What about
Code:
conStr = "Provider=[blue]MySQL ODBC 3.51[/blue];" & _
         "Data source=GilstoneMySql;" & _
         "Database=Gilstone;" & _
         "uid=harry;pwd=ueu8dyY9;"

I'm not sure about the blue line. You can check the manual book.
For more connection strings:

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top