如果
MySqlConnection。GetSchema
在一个叫”萨那很”如下:DataTable schemaPrimaryKeys =连接。GetSchema( "Indexes", new string[] { null, schemaName, "b`a`d"});
然后生成以下异常:
你有一个错误在你的SQL语法;检查与你的MySQL服务器版本对应的手册,在第一行'a ' '附近使用正确的语法
(错误# 48101)
当连接字符串选项”连接重置= True”使用时,连接重置使用前面为后续身份验证操作使用的编码。例如,如果在重置之前使用UCS2读取最后一列,则会失败。(错误# 47153)
在
MySqlDataReader
类的GetSByte
函数返回一个字节
值,而不是sbyte
价值。(错误# 46620)当尝试从SQL脚本创建存储过程时
MySqlException
在试图重新定义的时候被抛出分隔符
:MySql.Data.MySqlClient.MySqlException was unhandled Message="你有一个错误在你的SQL语法;检查与你的MySQL服务器版本相对应的手册,在第1行“Source=”MySQL附近使用正确的语法。mysql .Data " ErrorCode=-2147467259 Number=1064 StackTrace: à MySql.Data.MySqlClient.MySqlStream.ReadPacket() à MySql.Data.MySqlClient.NativeDriver. mysqlstream . readpacket()。读Result(UInt64& affectedRows, Int64& lastInsertId) à MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() à MySql.Data.MySqlClient.MySqlDataReader.NextResult() à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) à MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() à MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() à MySql.Data.MySqlClient.MySqlScript.Execute()
注意:
MySqlScript
类已固定,以支持分隔符语句,因为它是在SQL脚本中找到的。(错误# 46429)MySQL Connector/NET Profile Provider
MySql.Web.Profile.MySQLProfileProvider
,在Mono上运行时产生错误。当试图保存字符串时概要文件。的名字
字符串未保存到my_aspnet_Profiles
表格如果有人试图用Profile.Save ()
产生以下错误:在应用程序/ mono的服务器错误 -------------------------------------------------------------------------------- 请求的功能还没有实现。描述:HTTP 500。错误处理请求。堆栈跟踪:系统。NotImplementedException:请求的特性未实现。在MySql.Data.MySqlClient.MySqlConnection.EnlistTransaction (System.Transactions。[0x00000]在MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]在MySql.Web.Profile.MySQLProfileProvider.SetPropertyValues (System.Configuration.)SettingsContext上下文,System.Configuration.SettingsPropertyValueCollection) [0 x00000集合 ] -------------------------------------------------------------------------------- 版本信息:Mono版本:2.0.50727.1433;ASP。净版:2.0.50727.1433
(错误# 46375)
当使用MySQL Connector/NET 6.0.4和MySQL Server 4.1时,在尝试执行时产生了一个异常:
连接。GetSchema("Columns", ...);
产生的异常是:
'connection.GetSchema("Columns")'抛出一个类型为'System.ArgumentException'的异常。DataTable{系统。ArgumentException}base{"Input string was not in a correct format.Couldn't store <'Select'> in NUMERIC_PRECISION Column. Expected type is UInt64."}System.Exception {System.ArgumentException}
(错误# 46270)
MySQL Connector/NET方法
StoredProcedure.GetParameters(字符串)
忽略程序员的设置UseProcedureBodies
选择。这将破坏任何应用程序的参数名称与存储过程中的参数名称不匹配的应用程序,导致ArgumentException
与消息”在集合中找不到参数'foo'。”下面是堆栈跟踪:MySql.Data.dll ! MySql.Data.MySqlClient.MySqlParameterCollection。GetParameterFlexible(stri ng parameterName = "pStart", bool throwOnNotFound = true) Line 459c# MySql.Data.dll!MySql.Data.MySqlClient.StoredProcedure.Resolve() Line 157 + 0x25 bytesc# MySql.Data.dll!CommandBeha behavior = SequentialAccess) Line 405 + 0xb bytesC# MySql.Data.dll!逗号ndBehavior behavior = SequentialAccess) Line 884 + 0xb bytesc# System.Data.dll!ExecuteReader(系统. data。System.Data. common . dbdataadapter . fillinternal (System.Data. dll) + 0xb字节数据集= {System.Data。数据集},System.Data。DataTable[] DataTable = null, int startRecord = 0, int maxRecords = 0, string srcTable = "Table", System.Data.IDbCommand = {MySql.Data.MySqlClient. data . idb command = {MySql.Data.MySqlClient. DataTable[] DataTable = null, int startRecord = 0, int maxRecords = 0, string srcTable = "Table"。MySqlCommand}, System.Data. commandbehavior behavior) + 0x83 bytes System.Data.dll数据集,int startRecord, int maxRecords, string srcTable, System.Data. idb command command, System.Data. commandbehavior behavior) + 0x120 bytes System.Data.dll!数据集集)+ 0x5f字节
(错误# 46213)
MySQL的转换
非常小的整数(1)
来布尔
失败了。(Bug #46205, Bug #46359, Bug #41953)如果应用程序休眠的时间长于指定的
net_write_timeout
,然后继续读
连接上的操作,然后应用程序静默失败。(错误# 45978)读取数据时,如用
MySqlDataAdapter
在一个MySqlConnection
, MySQL Connector/NET可能会进入一个无限循环CompressedStream.ReadNextpacket ()
如果启用了压缩。(错误# 43678)从公共SVN存储库中签出的源代码构建MySQL Connector/NET时发生错误。这发生在使用Mono和Nant的Linux上。Mono JIT编译器的版本是1.2.6.0。Nant的版本为0.85。
当试图构建(例如)MySQL Connector/NET 5.2分支时,使用以下命令:
nant美元构建文件:Client.build
出现如下错误:
加载构建文件时出错。不支持编码名称'Windows-1252'。参数名称:名称
(错误# 42411)
MySQL Connector/NET CHM文10bet官方网站档说明MySQL Server 3.23被支持。(错误# 42110)
使用一个
DataAdapter
与一个链MySqlCommandBuilder
尝试调用时抛出以下异常哒。更新(我们[]行)
:连接必须是有效且打开的
(错误# 34657)