I used MySQL with VS some years ago, so apologies for that question. Is the following, I have:
win7 x64
VS 2010
and installed connector 6.3.6 and the community server. After using the GUI looks like mysql server is running ok.
I was surprised not finding mysql file to copy (the .dll), so when I took a look at documentation I found that it''s integrated in VS 2010 (I think im not wrong) - altough I tried place some dlls I found at bin directory but no sucess.
Just for test I created a new website with .NET 4.0 (also tried 3.5), on server explorer I added the connection (all ok) but when I compile I get:
Error1The type or namespace name ''MySql'' could not be found (are you missing a using directive or an assembly reference?)
at
using MySql.Data.MySqlClient;
using MySql.Data.Types;
How can I solve this problem?
I already reinstaled the connector and rebooted the computer, but the reference MySQL still dont work.
解决方案Download from here
http://dev.mysql.com/downloads/connector/net/1.0.html[^]
New assembly - delete old reference and add reference to new assembly
Regards
Espen Harlinn
i am trying to connect my visual studio with mysql but its asking mysql.dll i dont know how to create or connect