title: how can i export db from mysql without exec() function
body: <p>I am trying to get the database dump from a live mysql server. I don't have db access. from googling I have found a way to get this through <code>exec()</code> like this </p>
  
  <pre><code>$command='mysql -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword .' ' .$mysqlDatabaseName .' &lt; ' .$mysqlImportFilename;
          exec($command,$output=array(),$worked);
  </code></pre>
  
  <p>working nice on local host . But when i tried this on live server then i come to know that exec() is not enable on server . I have checked this with this method </p>
  
  <pre><code>if(function_exists('exec')) {
      echo "exec is enabled";
  }else
  {
    echo "exec is not enabled";
   }
  </code></pre>
  
  <p>and also tried this </p>
  
  <pre><code>if(exec('echo EXEC') == 'EXEC'){
      echo 'exec works';
  }else
  {
    echo "exec is not enabled";
  }
  </code></pre>
  
  <p>I want to know is there a method so that i can export db dump without <code>exec()</code> function .Because I don't have server access.</p>