I try to backup my database. I have the following code:

```
<?php
    $command = 'mysqldump --user=root --host=localhost opencart_status > backup.sql';
    $result = passthru($command);
    if(!$result){
        echo "Error!";
    }
    else{
        echo "OK";
    }
?>

```

I have no password to connect to the server with the database. The database that I need to backup is called `opencart_status`.

The output basckup.sql is made, but has 0 B size and is empty. And the output that I see on the screen is Error! I tried also the `exec()` function. But with the same result.

Thank you for your advice.