开发者

how to call mysql console using vb.net

Is it possible to call mysql console using vb.net?Or to create a mysql database backup using vb.net. I'm thinking if I could use a .bat file to execute the mysql dump code for me. And then call it using system.diagnostic.process.start in vb.net. But I don't have any idea on how I can call the mysql console.exe. Because I have only experience in command开发者_开发知识库 prompt.


You can use the following check the documentation mysqldump

 dim Program as string = "Path to mysqldump"
 dim Args as string = "-u user_name -p[password] -r file_name"
 system.diagnostic.process.start(Program,Args)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜