1

I am trying to connect to a MYSQL database using VB.NET to handle some simple tasks at a page level. Usually the connections are made to a MYSQL database. I have downloaded a MYSQL-CONNECTOR 6.0.7. How do I reference or add this to my web project so that I can create the connection and use the provided methods?

In the unzipped package I download I do not see any dll files so not sure what to do with this ATM, I am used to seeing a bin folder which contains this. Maybe I have a bad download any suggestions?

2 Answers 2

1

If you downloaded the ZIP archive, then generally this is the source code distribution. You need to open MySQLClient.sln in Visual Studio and build the MySql.Data project to produce MySql.Data.dll in the bin folder.

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

2 Comments

Is there any reason why a dll wouldn't be included just our of curiosity?
They include the dll in the Windows Installer package, but not the source. The source is provided so you can compile a specific build of the dll to meet your needs. For example the project is .NET 4 CLR by default, but I need 3.5 so having them provide the dll in the source would have done me no good. I guess they could have provided the dll in different forms, but that's what they have the installer for :P
0

the last version is 6.4.3 download from http://www.mysql.com/downloads/connector/net/ , add reference for the unzip folder and us it as sqlClient it has the same class only have to append My to the class name

1 Comment

I have the same problem here. You must reference an assembly not a folder, where do you find this in the unzipped folder?

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.