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
26468
April 06, 2005 12:42PM
Re: mysqldump and java
12107
April 12, 2005 10:19AM
10434
November 17, 2005 07:28AM
11029
November 22, 2005 03:36AM
8828
January 09, 2006 12:24AM
6809
S P
October 08, 2007 07:22AM
5838
October 01, 2007 06:44PM
4267
January 16, 2008 11:19PM
7850
February 15, 2006 01:32AM
9411
March 19, 2006 11:28PM
10511
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.