Is possible? I plan to backup mysql database using vb.net. If you know any beginner tutorial on how to do this, then please let me know.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand the question correctly, you want to start
mysql.exefrom VB.Net and supply some command-line parameters to tell it what to do (in your case, do a database backup). (FWIW, you might be better off usingmysqldump.exefor that.)You can start any process via the
System.Diagnostics.Process.Startmethod. You’ll probably want either this variant that gives you full control over the startup, or this one that just lets you specify the process (EXE) name and arguments. Here’s a page with lots of examples. They’re in C#, but it shows using these methods; the syntactic differences don’t (I suspect) get in the way much.Off-the-cuff example: