下面代码报错,提示MySqlBackup未定义,如何定义?
Dim con As String = "database=test;"
Dim file As String = "C:\backup.sql"
Dim mb As New MySqlBackup(con)
'Dim filename As String = "D:\MYSQL-BF\t33.sql"
'Dim arguments As String = "--user=root --password=123 t33 > """ & filename & """"
'System.Diagnostics.Process.Start("mysqldump.exe", arguments)
执行闪一下,看不到什么结果?如何解决
参考这里的用法:http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=190730&replyID=18669&skin=1
Dim Proc As New Process
Dim filename As String = "D:\MYSQL-BF\t33.sql"
Dim arguments As String = "--user=root --password=123 t33 > """ & filename & """"
Proc.Start("mysqldump.exe", arguments)
红代码报错提示参数太多,如何解决?
把dos命令放到bat文件里执行,暴露用户名和密码,不安全,要在狐表的代码或狐表的文本框录入的值来实现,比较安全