mysql 数据库和net 的版本动态库搭配问题

  心得体会:在使用c#和mysql数据库连接的时候一定要注意二者的搭配问题,否则可能造成数据库连接不上。先认识清楚,然后再从官网下载正确的连接库即可;

一下内容来自mysql官方网站:http://dev.mysql.com/doc/refman/4.1/en/connector-net-versions.html

一下内容来自mysql官网

17.2.1. Connector/NET Versions

There are several versions of Connector/NET available:

  • Connector/NET 1.0 includes support for MySQL Server 4.0, 4.1, and 5.0 features, and full compatibility with the ADO.NET driver interface.

    This version of Connector/NET is no longer supported.

  • Connector/NET 5.0 includes support for MySQL Server 4.0, 4.1, 5.0 and 5.1 features. Connector/NET 5.0 also includes full support for the ADO.Net 2.0 interfaces and subclasses, includes support for the usage advisor and performance monitor (PerfMon) hooks.

    This version of Connector/NET is no longer supported.

  • Connector/NET 5.1 includes support for MySQL Server 4.0, 4.1, 5.0, 5.1, 5.4 and 5.5 features. Connector/NET 5.1 also includes support for a new membership/role provider, Compact Framework 2.0, a new stored procedure parser and improvements to GetSchema. Connector/NET 5.1 also includes the Visual Studio Plugin as a standard installable component.

    This version of Connector/NET is no longer supported.

  • Connector/NET 5.2 includes support for MySQL Server 4.1, 5.0, 5.1, 5.4, and 5.5 features. Connector/NET 5.2 also includes support for a new membership/role provider, Compact Framework 2.0, a new stored procedure parser and improvements to GetSchema. Connector/NET 5.2 also includes the Visual Studio Plugin as a standard installable component.

    This version of Connector/NET is no longer supported.

  • Connector/NET 6.0 includes support for MySQL Server 4.1, 5.0, 5.1, 5.4 and 5.5.

    This version of Connector/NET is no longer supported.

  • Connector/NET 6.1 includes support for MySQL Server 4.1, 5.0, 5.1, 5.4, and 5.5. Important new features include the MySQL Website Configuration Tool and a Session State Provider.

  • Connector/NET 6.2 includes support for MySQL Server 4.1, 5.0, 5.1, 5.4, and 5.5. Important new features include a new logging system and client SSL certificates. Connector/NET 6.2 is currently available as a Beta release.

  • Connector/NET 6.3 includes support for MySQL Server 5.0, 5.1, 5.4, and 5.5. Important new features include integration with Visual Studio 2010, such as availability of DDL T4 template for Entity Framework, and a custom MySQL SQL Editor. Other features include refactored transaction scope: Connector/NET now supports nested transactions in a scope where they use the same connection string. Connector/NET 6.3 is available as a Beta release.

The latest source code for Connector/NET can be downloaded from the MySQL public Subversion server. For further details see Section 17.2.2.3, “Installing Connector/NET from the source code”.

The following table shows the .NET Framework version required, and MySQL Server version supported by Connector/NET:

Connector/NET versionADO.NET version supported.NET Framework version requiredMySQL Server version supportedCurrently supported
1.01.x1.x4.0, 4.1, 5.0No
5.02.x+2.x+4.0, 4.1, 5.0No
5.12.x+2.x+4.0, 4.1, 5.0, 5.1, 5.4, 5.5No
5.22.x+2.x+4.1, 5.0, 5.1, 5.4, 5.5No
6.02.x+2.x+4.1, 5.0, 5.1, 5.4, 5.5Critical issues only
6.12.x+2.x+4.1, 5.0, 5.1, 5.4, 5.5Yes
6.22.x+2.x+4.1, 5.0, 5.1, 5.4, 5.5Yes
6.32.x+2.x+, 4.x+ for VS 2010 support5.0, 5.1, 5.4, 5.5Yes
Note

Version numbers for MySQL products are formatted as X.Y.Z, where Z=0 indicates alpha, Z=1 indicates beta, and Z>=2 indicates GA. However, Windows tools (Control Panel, properties display) may show the version numbers as XX.YY.ZZ. For example, the official MySQL formatted version number 5.0.9 may be displayed by Windows tools as 5.00.09. The two versions are the same; only the number display format is different.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值