locked
Connector/Net 6.6.4 for Visual Studio 2012 Set connection will Crash RRS feed

  • Question

  • User1100393152 posted

    OS: Windows 8 x64 pro

    Tool: Visual Studio 2012 Ultimate Update 1

    I download http://www.mysql.com/downloads/ Connector/NET 6.6.4 Version, 

    1. create empty web project

    2. set connection to remote MySql server, click "Test" will show error message:

    mysql connection error

    3. If I click "OK", then visual studio 2012 will crash and restar. 

    Saturday, February 2, 2013 10:48 AM

All replies

  • User1057499632 posted

    Imports MySql.Data.MySqlClient
    Public Class Form1
       Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          'Project| Add Reference|C:\Program Files (x86)\MySQL\Connector NET 6.6.5\Assemblies\v4.0\MySql.Data.dll

       End Sub

       Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
          Me.Tag = "Server=MY-PC;Database=myDB;User Id=" & TextBoxUID.Text & ";Password=" & TextBoxPWD.Text & ";Connection           Timeout=20"
          Try
             Dim connection As New MySqlConnection(Me.Tag.ToString)
             connection.Open()
             connection.Close()
             MsgBox("Connection is okay.")
          Catch ex As Exception
             MsgBox(ex.Message)
          End Try
       End Sub
    End Class

    Saturday, June 1, 2013 10:32 PM