VB.NET:
Dim TheConnection As New [COLOR=red]MySqlConnection[/COLOR]("server=localhost;" _
& "user id=root;" _
& "password=password;" _
& "database=supervid")
Dim cmd As New MySqlCommand
Try
TheConnection.Open()
cmd.Connection = TheConnection
cmd.CommandText = "backup database supervid to disk='c:\temp\testdb_1.bak'"
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
TheConnection.Dispose()
TheConnection = Nothing
cmd = Nothing
End Try
End Sub
I took this example from one of the posts, im getting
"error in your SQL syntax, check your manual to see if its the correct version to use near backup database supervid to disk='c:\temp\testdb_1.
thanks in advance
Jon