C# MYSQL命令可以上传到数据库的最大查询是什么?

C# MYSQL命令可以上传到数据库的最大查询是什么?,c#,mysql,C#,Mysql,我正试图上传大约300KB到一个长文本中,我不断得到以下错误。 我正在使用MYSQL.NET连接器上传到我的数据库。 我正试图将一个文件从一个3ds模型上传为文本,这样它就会有很多无法识别的ASCII字符,如果这会造成不同的话 这是我的上传功能: public void Upload(string queue) { MySqlCon.Open(); MySqlCommand command = MySqlCon.CreateComm

我正试图上传大约300KB到一个长文本中,我不断得到以下错误。 我正在使用MYSQL.NET连接器上传到我的数据库。 我正试图将一个文件从一个3ds模型上传为文本,这样它就会有很多无法识别的ASCII字符,如果这会造成不同的话

这是我的上传功能:

public void Upload(string queue)
        {
            MySqlCon.Open();
            MySqlCommand command = MySqlCon.CreateCommand();
            command.CommandText = queue;
            command.ExecuteNonQuery();
            MySqlCon.Close();


        }
这就是我所说的:

string FBXQuery = "UPDATE 'itemmodel' SET 'modelFile'='" + FBX + "'
 WHERE 'modelName'='" + txt_Name.Text + "'; ";
             SQL.Upload(FBXQuery);
以下是错误:

System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>Item Manager.vshost.exe</AppDomain><Exception><ExceptionType>MySql.Data.MySqlClient.MySqlException, MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d</ExceptionType><Message>Fatal error encountered during command execution.</Message><StackTrace>   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Item_Manager.MYSQL.Upload(String queue) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\MYSQL.cs:line 187
   at Item_Manager.NewItem.btn_Upload_Click(Object sender, EventArgs e) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\NewItem.cs:line 64
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Item_Manager.Form1.newItemToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\Form1.cs:line 81
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at Item_Manager.Program.Main() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\Program.cs:line 18
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>MySql.Data.MySqlClient.MySqlException: Fatal error encountered during command execution. ---&amp;gt; MySql.Data.MySqlClient.MySqlException: Parameter '?' must be defined.
   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName)
   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)
   at MySql.Data.MySqlClient.Statement.BindParameters()
   at MySql.Data.MySqlClient.PreparableStatement.Execute()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at Item_Manager.MYSQL.Upload(String queue) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\MYSQL.cs:line 187
   at Item_Manager.NewItem.btn_Upload_Click(Object sender, EventArgs e) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\NewItem.cs:line 64
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Item_Manager.Form1.newItemToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\Form1.cs:line 81
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at Item_Manager.Program.Main() in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\Program.cs:line 18
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()</ExceptionString><InnerException><ExceptionType>MySql.Data.MySqlClient.MySqlException, MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d</ExceptionType><Message>Parameter '?' must be defined.</Message><StackTrace>   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName)
   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)
   at MySql.Data.MySqlClient.Statement.BindParameters()
   at MySql.Data.MySqlClient.PreparableStatement.Execute()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)</StackTrace><ExceptionString>MySql.Data.MySqlClient.MySqlException: Parameter '?' must be defined.
   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName)
   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)
   at MySql.Data.MySqlClient.Statement.BindParameters()
   at MySql.Data.MySqlClient.PreparableStatement.Execute()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)</ExceptionString></InnerException></Exception></TraceRecord>
System.Transactions关键:0:http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/UnhandledUnhandled exceptionItem Manager.vshost.exemsql.Data.MySqlClient.MySqlException,MySql.Data,版本=6.4.4.0,区域性=中性,PublicKeyToken=C5687FC88969C44D在命令执行期间遇到致命错误。位于MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior)
在MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()处
在C:\Users\Administrator\Documents\visualstudio 2008\Projects\Item Manager\Item Manager\MYSQL.cs中的Item_Manager.MYSQL.Upload(字符串队列)中:第187行
在Item\u Manager.NewItem.btn\u Upload\u单击C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\NewItem.cs中的(对象发送者,事件参数e):第64行
在System.Windows.Forms.Control.OnClick(EventArgs e)中
在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs-mevent)上
在System.Windows.Forms.Control.WmMouseUp(消息和m、鼠标按钮、Int32单击)
在System.Windows.Forms.Control.WndProc(Message&;m)中
在System.Windows.Forms.ButtonBase.WndProc(Message&;m)
在System.Windows.Forms.Button.WndProc(Message&;m)中
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&;m)中
在System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)
在System.Windows.Forms.UnsafentiveMethods.DispatchMessageW(MSG&;MSG)
位于System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafentiveMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID、Int32 reason、Int32 pvLoopData)
位于System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32原因,ApplicationContext上下文)
位于System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32原因,ApplicationContext上下文)
位于System.Windows.Forms.Form.ShowDialog(iwin32窗口所有者)
在Item_Manager.Form1.newItemToolStripMenuItem_单击C:\Users\Administrator\Documents\visualstudio 2008\Projects\Item Manager\Item Manager\Form1.cs:第81行中的(对象发送者,事件参数e)
位于System.Windows.Forms.ToolStripItem.RaiseEvent(对象键,事件参数e)
在System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)中
位于System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
在System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)中
在System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs-mea)中
在System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)中
在System.Windows.Forms.Control.WmMouseUp(消息和m、鼠标按钮、Int32单击)
在System.Windows.Forms.Control.WndProc(Message&;m)中
在System.Windows.Forms.ToolStrip.WndProc(Message&;m)
在System.Windows.Forms.ToolStripDropDown.WndProc(消息和m)
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&;m)中
在System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)
在System.Windows.Forms.UnsafentiveMethods.DispatchMessageW(MSG&;MSG)
位于System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafentiveMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID、Int32 reason、Int32 pvLoopData)
位于System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32原因,ApplicationContext上下文)
位于System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32原因,ApplicationContext上下文)
在C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\Program.cs中的Item\u Manager.Program.Main()处:第18行
位于System.AppDomain.\u nexecutestAssembly(程序集,字符串[]args)
在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()上
在System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态)
位于System.Threading.ThreadHelper.ThreadStart()MySql.Data.MySqlClient.MySqlException:在命令执行期间遇到致命错误---&;燃气轮机;MySql.Data.MySqlClient.MySqlException:必须定义参数“?”。
位于MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection参数、MySqlPacket数据包、字符串parmName)
位于MySql.Data.MySqlClient.Statement.InternalBindParameters(字符串sql、MySqlParameterCollection参数、MySqlPacket数据包)
在MySql.Data.MySqlClient.Statement.BindParameters()处
在MySql.Data.MySqlClient.PreparableStatement.Execute()处
位于MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior)
---内部异常堆栈跟踪的结束---
位于MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior)
在MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()处
在C:\Users\Administrator\Documents\visualstudio 2008\Projects\Item Manager\Item Manager\MYSQL.cs中的Item_Manager.MYSQL.Upload(字符串队列)中:第187行
在Item\u Manager.NewItem.btn\u Upload\u单击C:\Users\Administrator\Documents\Visual Studio 2008\Projects\Item Manager\Item Manager\NewItem.cs中的(对象发送者,事件参数e):第64行
在System.Windows.Forms.Control.OnClick(EventArgs e)中
在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs-mevent)上
在System.Windows.Forms.Control.WmMouseUp(消息和m、鼠标按钮、Int32单击)
在System.Windows.Forms.Control.WndProc(Message&;m)中
在System.Windows.Forms.ButtonBase.WndProc(Me