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
26629
April 06, 2005 12:42PM
Re: mysqldump and java
12172
April 12, 2005 10:19AM
10485
November 17, 2005 07:28AM
11109
November 22, 2005 03:36AM
8880
January 09, 2006 12:24AM
21167
January 09, 2006 12:22AM
14795
February 14, 2006 02:16AM
9888
February 15, 2006 12:23AM
6856
October 08, 2007 07:22AM
7111
November 27, 2007 06:15AM
5613
July 01, 2008 08:19AM
6080
July 31, 2008 12:00AM
5905
October 01, 2007 06:44PM
4311
January 16, 2008 11:19PM
7911
February 15, 2006 01:32AM
9475
March 19, 2006 11:28PM
10568
March 21, 2006 11:27AM
10742
May 18, 2006 11:52AM
4522
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.