I use mysqldump to get mysql database backup.it's work fine when i try it on dos prompt.
like this..
mysqldump -u uname -ppassword databaseName>C:/backup.sql
this will create backup.sql file.
then i try this in java
try{
Runtime rt=Runtime.getRuntime();
rt.exec("C:/Programme Files/MySQL/MySQL Server 5.0/bin/mysqldump -u uname -ppassword >databaseName>C:/backup.sql");
catch(IoException e){}
It's runs without errors.But nothing happen.No file create.
Can anyone tell me why this is not work...
can anyone help me..
Edited by: Sasika on Jun 10, 2009 2:32 AM