数据库使用 mysql安装MYSQL提供的MYSQL CONNECTOR .NET在工程中  using MySql.Data.MySQLClient;   但是提示无法找到mysql命名空间怎么回事???

解决方案 »

  1.   

    或者你用system.data.oledb,或者odbc好了。
      

  2.   

    项目中增加引用 MYSQL
    代码中using MySql.Data.MySQLClient;
    你大小写没错吧?
      

  3.   

    把MySQLDriverCS.dll添加到.net的组件面板
    using MySQLDriverCS;MySQLConnection conn =  new MySQLConnection( new MySQLConnectionString("localhost","","root","").AsString );
    conn.Open();
    MySQLCommand cmd;
    cmd = new MySQLDriverCS.MySQLCommand("",conn);
      

  4.   

    MySQLDriverCS.dll.把它添加到.net的组件面板里
    下面是创建一个数据库链接: using MySQLDriverCS; MySQLConnection conn = new MySQLConnection( new MySQLConnectionString("localhost","test","root","").AsString ); conn.Open(); 
      

  5.   

    VC工程中怎么使用MYSQL呢???
      

  6.   

    在C#中添加引用是不是就是类似于VC工程中的加载DLL/LIB啊???