C# Using MySQL
来源:互联网 发布:淘宝怎么取消实名认证 编辑:程序博客网 时间:2024/06/06 15:41
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>
<connectionStrings>
<add name="Northwind"
providerName="System.Data.SqlClient"
connectionString="server=(local);integrated security=SSPI;database=Northwind" />
</connectionStrings>
</configuration>
Unable to find the requested .Net Framework Data Provider. It may not be installed.
MySql “找不到请求的 .Net Framework 数据提供程序。可能没有安装。”
需要在app.config或者web.config中添加下面的配置项
<system.data>
<DbProviderFactories>
<add name="MySQL Data Provider" description="ADO.Net driver for MySQL" invariant="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data"/>
</DbProviderFactories>
</system.data>
<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- C# Using MySQL
- C# Using MySQL
- MySQL Stored Procedure + C# Using ODBC
- How to Connect to MySQL Using C#
- C# using
- C# using
- C# using
- C# using
- C# using
- C# using
- C# using
- Using Attributes in C#
- Serial Communication using C#
- C#中using
- Multithreaded Programming Using C#
- Plugin Architecture using C#
- Using Attributes in C#
- Using Indexers in C#
- 又一个Linux的双向stateless NAT
- 朱丹念错短信号码闹乌龙,损失短信收入1千万以上
- STL map insert之后,自动按key排序
- 浏览器的工作原理:新式网络浏览器幕后揭秘
- 第十一堂课后作业
- C# Using MySQL
- 话说我打算一天学完object c语法,系列5--------来自书Objective-c程序设计
- 产生 X 个数 的排列
- hdu1196(Lowest Bit)
- 产品经理如何通过谈话沟通将需求分析趋于完善
- hdu Entropy 1053 哈夫曼树
- Selenite(月光石) --Rurutia
- 宇龙酷派202笔试题
- 对象库未注册这是个问题