MySQL Forums
Forum List  »  Backup

Re: mysqldump and java
Posted by: gannono
Date: April 12, 2005 10:19AM

Now including the following, but still not working!!!
Seems to be executing mysqldump command as far as the redirection '>' symbol.
Any Suggestions?????

try{
String line;
String name = "portiadb";
String[] cmd2={"mysqldump", "--opt","portiadb",">","sql.dump20"};
Process p=Runtime.getRuntime().exec(cmd2);
p.waitFor();
BufferedReader input =
new BufferedReader
(new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null) {
System.out.println(line);
}
input.close();
}
catch (Exception err) {
err.printStackTrace();
out.println(err);

}

thanks..

Options: ReplyQuote


Subject
Views
Written By
Posted
26751
April 06, 2005 12:42PM
Re: mysqldump and java
12250
April 12, 2005 10:19AM
10532
November 17, 2005 07:28AM
11184
November 22, 2005 03:36AM
8936
January 09, 2006 12:24AM
6898
S P
October 08, 2007 07:22AM
5958
October 01, 2007 06:44PM
4360
January 16, 2008 11:19PM
7963
February 15, 2006 01:32AM
9531
March 19, 2006 11:28PM
10608
March 21, 2006 11:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.