• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1390
  • Last Modified:

MySql.Data.MySqlClient

Can some one please tell me how to get this referencve to work in .net

In my assemblies I have the MySql.Data but when I run the code it says it cannot find it

MySql.Data.Data.MySqlClient

It is there but for some reason still won't have it. Does an any one have any ideas?

0
REA_ANDREW
Asked:
REA_ANDREW
  • 2
1 Solution
 
NomanCommented:
1) Right - Click on your project
2) Select Add reference
3) From the .NET tab if you cannot see Mysql.Data.Dll then click on browse
4) Navigate to your mysql installation folder
5) Select te dll file

Let me know if you need further help.

Regards
0
 
REA_ANDREWAuthor Commented:
I get this error

Compiler Error Message: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

 

Line 15:     protected void Page_Load(object sender, EventArgs e)
Line 16:     {
Line 17:         MySql.Data.MySqlClient.MySqlConnection conn;
Line 18:         string myConnectionString;
Line 19:
 
0
 
NomanCommented:
Did you add the reference correctly as i mentioned?
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now