none
MYSql出现错误mysql out of sync with server RRS feed

  • 问题

  •  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim conn As New MySqlConnection()
            conn.ConnectionString = ("Server=localhost;Database=taipan; User=root;Password=ckjason9245699;Pooling=false;")
            Try
                MyConnection.Open()
                MessageBox.Show("Connection Opened Successfully")
                MyConnection.Close()
            Catch myerror As MySqlException
                MessageBox.Show("Error Connecting to Database: " & myerror.Message)
            Finally
                MyConnection.Dispose()
            End Try
        End Sub
    出现错误mysql out of sync with server,该怎样解决
    2011年9月8日 9:33

答案

  • Hi,

    麻烦用以下代码测试下:

     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim conn As New MySqlConnection()
            conn.ConnectionString = ("Server=localhost;Database=taipan; User=root;Password=ckjason9245699;Pooling=false;")
            Try
                conn .Open()
                MessageBox.Show("Connection Opened Successfully")
                conn .Close()
            Catch myerror As MySqlException
                MessageBox.Show("Error Connecting to Database: " & myerror.Message)
            End Try
        End Sub
    
    Best regards,


    Mike Feng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年9月12日 4:38
    版主