Hi I'm new here.I just need a solution to backup mysql data. I add up the reference in my vb.net project.
Mysqlbackup is 184.108.40.206 and Mysql.Data is 220.127.116.11 . I did just a simple backup by opening new form and add a button when user click on that button here are the code
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim con As String = "server=localhost;user=root;pwd=myrootpassword;database=mymember;"
Dim file As String = "C:\backup.sql"
Dim mb As New MySqlBackup(con)
mb.ExportInfo.FileName = file
MsgBox("ได้ทำการ backup แล้ว")
** mymber is the database that I wanted to backup
when user click I get an error at mb.export
NullReferenceException was unhandled
Object reference not set to an instance of an object.