title: Backing up MySQL database from java app
body: <p>I'm trying to backup my MySQL database from my Java app.
  Here's the code:</p>
  
  <pre><code>String executeCmd = "mysqldump.exe -u " + dbUser + " -p" + dbPass;
  executeCmd += " --all-databases &gt; " + savePath;
  System.out.println(executeCmd);
  Runtime.getRuntime().exec(executeCmd);
  </code></pre>
  
  <p>But it do nothing. If I copy output of System.out.println and paste it into cmd it works fine. Can someone say what's wrong in Java?</p>