首页 > 数据库 > mysql教程 > C# Using MySQL_MySQL

C# Using MySQL_MySQL

WBOY
发布: 2016-06-01 13:35:53
原创
1195 人浏览过

bitsCN.com

Configuration of MySQL on C# project.

1. Download the assembly from MySQL binary on installing MySQL connector .NET

2. Copy it to your project’s build out directory, such as ‘$ProjectDIR/Bin/Debug’

3. Add the assembly into your solution on “Add Reference…”

4. Add ‘using MySQL.Data’ namespace in your code.

Common Error

Configuration system failed to initialize

Please check syntax in the app.config.  The format for using connectionstring in app.config should be like below:

<configuration><br>  <connectionstrings><br>    <add name="Northwind"></add>         providerName="System.Data.SqlClient"<br>         connectionString="server=(local);integrated security=SSPI;database=Northwind" /><br>  </connectionstrings><br></configuration>
登录后复制

Unable to find the requested .Net Framework Data Provider.  It may not be installed.

MySql “找不到请求的 .Net Framework 数据提供程序。可能没有安装。”

需要在app.config或者web.config中添加下面的配置项


   
       
   

bitsCN.com
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板