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
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
21215
January 09, 2006 12:22AM
14856
February 14, 2006 02:16AM
9939
February 15, 2006 12:23AM
6898
October 08, 2007 07:22AM
7155
November 27, 2007 06:15AM
5669
July 01, 2008 08:19AM
6132
July 31, 2008 12:00AM
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
10802
May 18, 2006 11:52AM
4565
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.