title: MySql backup is not working
body: <pre><code>String[] executeCmd = new String[] { "mysql", "-u",DB_USER,"-p"+DB_PASSWORD,DB_NAME, " &lt; ", "\""+FileName+"\"" };
  
  Process runtimeProcess = Runtime.getRuntime().exec(executeCmd);
  int processComplete = runtimeProcess.waitFor();
  System.out.println("processComplete: " + processComplete);
  </code></pre>
  
  <p>This is the code I have worked with. The program hangs when the "waitFor()" method is called.</p>
  
  <p>How to solve this?</p>