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大小。
  • 相关阅读:
    CodeForces
    CodeForces
    AtCoder
    AtCoder
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    Centos7配置yum国内镜像及仓库升级
    环境变量
  • 原文地址:https://www.cnblogs.com/simhare/p/1579076.html
Copyright © 2011-2022 走看看