zoukankan      html  css  js  c++  java
  • The type or namespace name 'MySql' could not be found .net 连接 MySql时的错误

    The type or namespace name 'MySql' could not be found.
    -------------
    if the IDE is vs.net then you copy the dll into C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 or the newest version of the .NET framework you have in the Framework folder, could be v1.0.3705, just depends what version you have in there. Copy the dll in there and add the reference in the VS.NET IDE by going to project, add reference, then select file
    -------------
    Build Solution时遇到的该错误,原因是我只把这个dll放在bin下,并且Add Reference添加了该dll,但这不够,应该把该dll放在C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    这个文件夹下!
    这样Add Reference时就能在.NET 选项卡下看到MySql.Data
    -------------
    In SharpDevelop (the IDE I know) you need to reference the MySQL GAC entry (right click on reference in the project tree view, click add, then find the MySql dll in the GAC).
    -------------
    这个dll是从网上下载到的,260K大小。
  • 相关阅读:
    第三章 运算符与表达式
    python 第二章 对象与类型
    线段树区间染色+注意事项
    ACM-ICPC北京赛区2018重现赛 A题
    删除元组
    修改元组
    访问元组
    Python 元组
    Python List sort()方法
    hdu4501——小明系列故事——买年货(多维背包)
  • 原文地址:https://www.cnblogs.com/simhare/p/1579076.html
Copyright © 2011-2022 走看看