开发者

how to call mysql console using vb.net

开发者 https://www.devze.com 2022-12-20 11:15 出处:网络
Is it possibleto 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 usi

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

精彩评论

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

关注公众号