954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

urgent help needed

Am trying to restore a MySQL database using the 'mysql -u root db < my_db' command. In vb's process.start. it gives me the default output you get when you type MySQL - help. Can someone tell me what's up. I guess it cannot see the < symbol. Regards.

roottybrian
Junior Poster in Training
54 posts since Aug 2008
Reputation Points: 10
Solved Threads: 10
 
thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 
Are you passing the arguments correctly? http://msdn.microsoft.com/en-us/library/h6ak8zt5.aspx#Y1690

Infact arguments without the < symbol work perfectly well but every time I use the

roottybrian
Junior Poster in Training
54 posts since Aug 2008
Reputation Points: 10
Solved Threads: 10
 

I understand.
That's a "shell" issue and from what I remember, more complicated.
Can you then write the commands into a batch file, then process-start the batch file? :(

thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 

You could also write a tiny app with a text box. The user puts the sql command in the text box and presses a button. The button will fire off code that will bind the text string to a command and ExecuteNonQuery.

Begginnerdev
Posting Pro in Training
405 posts since Apr 2010
Reputation Points: 69
Solved Threads: 59
 
I understand. That's a "shell" issue and from what I remember, more complicated. Can you then write the commands into a batch file, then process-start the batch file? :(

Thanks. Using a batch file works perfectly. Kudos guys.

roottybrian
Junior Poster in Training
54 posts since Aug 2008
Reputation Points: 10
Solved Threads: 10
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: