“公共子新()VB .NET的参数太多”

时间:2015-09-07 10:55:50

标签: mysql vb.net

我使用MySqlBackup.NET_2.0.9.2来备份MySQL数据库。 我使用这段代码:

Private Sub cmdExportBazaDate_Click(sender As System.Object, e As System.EventArgs) Handles cmdExportBazaDate.Click

    Dim constring As String = Parametriiconexiune
    Dim zi As String = data
    Dim file As String = cale_salvari + data + "_baza" + ".sql"

    Dim conn As MySqlConnection
    conn = New MySqlConnection(constring)
    Dim cmd As MySqlCommand
    cmd = New MySqlCommand
    cmd.Connection = conn
    conn.Open()
    Dim mb As MySqlBackup
    mb = New MySqlBackup(cmd)
    mb.ExportToFile(file)
    conn.Close()

End Sub

我收到错误: “公共子新”()'

的参数太多了

对于这一行: mb = New MySqlBackup(cmd)

如何修复请绕过错误。

0 个答案:

没有答案