public function getDumpDataCommand($database, $username, $password, $outputPath, $tables = array())
    {
        $tables = array_map('escapeshellarg', $tables);

        $command = sprintf(
            'mysqldump %s %s -u %s -p%s --no-create-info > %s',
            escapeshellarg($database),
            implode(' ', $tables),
            escapeshellarg($username),
            escapeshellarg($password),
            escapeshellarg($outputPath)
        );

        return $command;
    }
public function getDumpDataCommand($database, $username, $password, $outputPath, $tables = array())
    {
        $tables = array_map('escapeshellarg', $tables);

        $command = sprintf(
            'mysqldump %s %s -u %s -p%s --no-create-info > %s',
            escapeshellarg($database),
            implode(' ', $tables),
            escapeshellarg($username),
            escapeshellarg($password),
            escapeshellarg($outputPath)
        );

        return $command;
    }
public function getDumpDataCommand ( $ database , $ username , $ password , $ outputPath , $ tables = array ( ) ) { $ tables = array_map ( 'escapeshellarg' , $ tables ) ; $ command = sprintf ( 'mysqldump %s %s -u %s -p%s --no-create-info > %s' , escapeshellarg ( $ database ) , implode ( ' ' , $ tables ) , escapeshellarg ( $ username ) , escapeshellarg ( $ password ) , escapeshellarg ( $ outputPath ) ) ; return $ command ; }
Return the mysqldump command for data only

@param  string $database   the database name
@param  string $username   the database username
@param  string $password   the database password
@param  string $outputPath the resultant file location
@param  array  $tables     the tables to include (optional)
@return string             the command to run
Return the mysqldump command for data only