473,388 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

.Net : How to connect to MySQL using OLE DB Provider?

Expand|Select|Wrap|Line Numbers
  1. Private Connection As New System.Data.OleDb.OleDbConnection
  2. Private Command As New System.Data.OleDb.OleDbCommand
  3.  Connection.ConnectionString = "Provider=MySQLProv;Data Source=localhost;User Id=root;"
  4.  Command.Connection = Connection
  5. Connection.Open()

When this code is executed, it shows "MySQLProv is not registered in the local machine"

How to connect Mysql database using OLE DB provider? What should I do for this?
Nov 13 '08 #1
2 10637
7,872 Expert 4TB
Do you actually have the mysql provider installed on your computer?

It looks like you have the correct connection string, but unless you named your database "localhost", I think you need to fix the database name
Nov 13 '08 #2
Curtis Rutland
3,256 Expert 2GB
I'm pretty sure it's not a conn string issue, based on his error.

Have you installed the provider? Is it installed by default when you install MySql? Do you have MySql on your machine?

I've never used MySql, but I've used other DBMSs that will install their .net connectors, OleDB providers, and ODBC drivers when you install their client tools. For example, when you install IBM's Client Access software, it installs the IBMDA400 provider on your machine.

Search around for installing the provider. Also look for the native connector, as that will be easier to use.
Nov 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Eliecer | last post by:
I have a VB6 program that connects with a MySQL 4.0.17 through MyOLEDB Provider v3.0. At the begining of the program, when I try to connect with the MySQL server and this one is not running,...
by: Marcus | last post by:
Hello! I'm trying to write a VB.NET program that connects to a AS/400 Server. I've tried almost everything, but it will not connect. I've tried to set up a DSN using the Client Access...
by: matt (ziba) | last post by:
what is the best way to connect to a mySQL database... is it using an odbc link? thank you in advance
by: hkappleorange | last post by:
I connect to mdb file using the following codes. How should I modify it if I want to connect to Excel instead ? <%@ Import Namespace="System.Data.OleDb" %> <% Dim conAuthors As...
by: Alex Hardin | last post by:
Hey, I'm trying to use the connect to database wizard to connect to a MySQL database on my web server, (I'm actually not sure if that points specifically to my part of the server, if...
by: zMisc | last post by:
I am using VB.NET 1.1 and cannot connect to a MySQL (v5) database. I've done the following: 1) Create a DSN for MyODBC. 2) Connect using: Driver=MySQL ODBC 3.51 Driver; Server=localhost; Data...
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
by: Frank Rizzo | last post by:
I've been given a project to work with which involves connecting to MySQL from .NET 2.0 app. I've googled looked and there is a metric ton of different MySQL ADO.NET providers from different...
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.