0

I'm trying to connect to a mysql database with .net framework. I've searched for an example for c# desktop app or asp.net but no result. Can anyone explain how to connect successfully to an embedded mysql database.

I've found a library here sourceforge.net/mysqldrivercs but don't want to use any extra code if necessary.

1 Answer 1

1

You will need to use some kind of connector to conect to MySql, just like you would if you wanted to connect to a Sql server database, only difference is that the assemblies for Sql Server have been built into the .net framework.

Take a look at the following links for example on connecting to MySql.

CodeProject Example
Example 2

Sign up to request clarification or add additional context in comments.

1 Comment

Actually I know how to connect via Mysql.Data.dll to a server with ip, but I don't know how to connect to a database with only libmysql.dll which do not require mysql server installed and don't have an ip.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.