当我尝试创建与MySQL的新连接时,我遇到了Visual Studio崩溃的问题。
这是我的设置:
请注意,我可以从Workbench连接到MySQL服务器。
以下是重复步骤:
应用程序:devenv.exe 框架版本:v4.0.30319 描述:由于未处理的异常,进程终止。
Exception Info: MySql.Data.MySqlClient.MySqlException
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
Exception Info: MySql.Data.MySqlClient.MySqlException
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(System.Exception)
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean)
at MySql.Data.MySqlClient.NativeDriver.Authenticate(System.String, Boolean)
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySql.Data.MySqlClient.MySqlConnectionStringBuilder)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySql.Data.VisualStudio.MySqlConnectionSupport.Open(Boolean)
at MySql.Data.VisualStudio.MySqlDataConnectionUI.DatabaseExists()
at MySql.Data.VisualStudio.MySqlDataConnectionUI.okButton_Click(System.Object, System.EventArgs)
at System.EventHandler.Invoke(System.Object, System.EventArgs)
at System.Windows.Forms.Control.OnClick(System.EventArgs)
at System.Windows.Forms.Button.OnClick(System.EventArgs)
at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
关于可能导致此问题的任何想法?我试图在“添加新连接”对话框中取消选中“始终使用此选择”复选框,如similar issue with Visual Studio 2013中所建议的那样,但没有运气。
我也尝试了this post的一些建议,但没有成功。
答案 0 :(得分:0)
将上述评论转换为答案: 崩溃是由MySQL服务器超过最大连接数引起的。一旦我删除了MySQL中的连接数限制,我就可以在Visual Studio中添加连接了。