探索MySql.Data.dll
2007-12-30 10:52
561 查看
ADO.NET Driver for MySQL
MySql.Data.dll是.Net访问MySQL数据库的一个驱动,完全ADO.NET数据访问模式,由MySQL官方提供,有多个版本可选择。
最早使用的环境:.Net2.0+MySQL5.x+MySQL.data.dll 1.0.7,感觉似乎很稳定,一直没什么大问题。随着系统升级,尝试更新MySql.Data.dll版本(1.07版本官方早不提供下载了,现在最新版本分别是:1.0.10,5.0.8,5.1.4),问题出现了,经常会出现异常
The timeout period elapsed prior to completion of the operation or the server is not responding
在业务逻辑及数据不变的情况下,仅更换MySql.Data.dll就出现异常让我费尽了心思。[Category("Connection")]
[Description("Number of seconds to wait for the connection to succeed")]
[DefaultValue(15)]
public int ConnectionTimeout
[Category("Misc")]
[Description("Time to wait for command to execute")]
public int CommandTimeout
[Category("Connection")]
[DisplayName("Connect Timeout")]
[Description("The length of time (in seconds) to wait for a connection " +
"to the server before terminating the attempt and generating an error.")]
[DefaultValue(15)]
[RefreshProperties(RefreshProperties.All)]
public uint ConnectionTimeout
[Category("Misc")]
[Description("Time to wait for command to execute")]
[DefaultValue(30)]
public override int CommandTimeout
{
{ return commandTimeout; }
{ commandTimeout = value; }
}
属性可读写,默认值为30秒(这些默认值感觉跟SQLServer一样的),这一点跟1.0.7就不同了。1.0.7为只读且值为0。
我感觉前面提到的Timeout异常跟这里有很大关系,准备测试下.......
PS:希望能在园子里找些用MySQL的朋友,有问题可以一起探讨,在社区建了个小组: .Net+MySQL
MySql.Data.dll是.Net访问MySQL数据库的一个驱动,完全ADO.NET数据访问模式,由MySQL官方提供,有多个版本可选择。
最早使用的环境:.Net2.0+MySQL5.x+MySQL.data.dll 1.0.7,感觉似乎很稳定,一直没什么大问题。随着系统升级,尝试更新MySql.Data.dll版本(1.07版本官方早不提供下载了,现在最新版本分别是:1.0.10,5.0.8,5.1.4),问题出现了,经常会出现异常
The timeout period elapsed prior to completion of the operation or the server is not responding
在业务逻辑及数据不变的情况下,仅更换MySql.Data.dll就出现异常让我费尽了心思。[Category("Connection")]
[Description("Number of seconds to wait for the connection to succeed")]
[DefaultValue(15)]
public int ConnectionTimeout
[Category("Misc")]
[Description("Time to wait for command to execute")]
public int CommandTimeout
[Category("Connection")]
[DisplayName("Connect Timeout")]
[Description("The length of time (in seconds) to wait for a connection " +
"to the server before terminating the attempt and generating an error.")]
[DefaultValue(15)]
[RefreshProperties(RefreshProperties.All)]
public uint ConnectionTimeout
[Category("Misc")]
[Description("Time to wait for command to execute")]
[DefaultValue(30)]
public override int CommandTimeout
{
{ return commandTimeout; }
{ commandTimeout = value; }
}
属性可读写,默认值为30秒(这些默认值感觉跟SQLServer一样的),这一点跟1.0.7就不同了。1.0.7为只读且值为0。
我感觉前面提到的Timeout异常跟这里有很大关系,准备测试下.......
PS:希望能在园子里找些用MySQL的朋友,有问题可以一起探讨,在社区建了个小组: .Net+MySQL
相关文章推荐
- c#连接mysql中文乱码解决方案(MySql.Data.dll)
- ASP.net连接mysql数据库(使用MySql.Data.dll)
- C#调用MySQL数据库(使用MySql.Data.dll连接)mysql-connector-net-6.10.4.msi
- VB.net 连接 MySql,Use MySql.Data.dll
- C#添加 mysql.data.dll
- “System.StackOverflowException”类型的未经处理的异常在 MySql.Data.dll 中发生”的错误处理
- c#连接mysql中文乱码解决方案(MySql.Data.dll)
- VB.net 连接 MySql,Use MySql.Data.dll
- 找不到組件 'MySql.Data.dll' 的相依性1/9
- NHbernate使用MySql.Data.dll问题
- c# mysql getstring getdatatable 需要MySql.Data.dll
- MySQL数据库(四)_使用MySql.Data.dll连接_读写mysql数据库
- C# 使用mysql.data.dll,读写mysql数据库
- Asp.net通过MySql.Data.dll操作mysql数据库(二)
- MySql.Data.dll 不支持输出参数
- asp.net通过MySql.Data.DLL方式使用mysql
- Asp.net MySql.Data.dll 连接mysql数据库中文乱码解决
- 丛林战争项目九之引入MySql.Data.dll
- 6.3.1版mysql.data.dll的一个Bug
- 在Godaddy的Windows主机上使用MySql.Data.dll连接数据库