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..
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
21103
January 09, 2006 12:22AM
14680
February 14, 2006 02:16AM
9830
February 15, 2006 12:23AM
6809
October 08, 2007 07:22AM
7061
November 27, 2007 06:15AM
5530
July 01, 2008 08:19AM
6023
July 31, 2008 12:00AM
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
10653
May 18, 2006 11:52AM
4477
August 02, 2008 03:22AM
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.