views:

166

answers:

1

Possible Duplicates:
Where to begin with Card Reader application in C#
How can I connect to MySQL from windows forms?

I have installed XAMPP, which includes MySQL version 5.

I need to connect to this database from C#, but when I try to add a data source in Visual Studio it doesn't have a provider for MySQL version 5.

What do I need in order to accomplish this?

+1  A: 

Edit: Note, I think you're seeing the "Microsoft SQL Server Compact 3.5" provider in your list, and that there is no MySQL provider at all that you can select.

You basically need to install a MySQL provider for .NET that integrates into Visual Studio. There might not be one that integrates into Visual Studio, but you can check this other question here for some information: how do I connect to mysql database from windows forms, which lists some ways to connect to a MySQL database.

Because of this other question that I linked to here, your question might be considered a duplicate, and might be closed.

Lasse V. Karlsen