Click to See Complete Forum and Search --> : Problems using mysqldump


popminister
09-10-2002, 04:56 AM
Hello,

I've got Problems using the mysqldump utility from within PHP.

Here is my Code:

$command = $config["mysqldump_path"] . $config["mysqldump_command"] . " --user " . $config["user"]
. " --password=" . $config["password"] . " -c -v --add-drop-table --all-databases > " . $config["temp_dir"] . $output_file;

system ( $command );
?>

The Variables are all set to the correct values, but the result is, that the mysqldump-helppage is displayed when accessing this file through the Webbrowser and not the Output I reveive, when I enter the constructed CommandLine in my windows Command prompt.

The Commandline is:
c:\mysql\bin\mysqldump --user backup_user --password=secret -c -v --add-drop-table --all-databases > c:\inetpub\wwwroot\temp\ocwhljyg.sql

Any Idea?

dotwebbie
09-11-2002, 03:42 PM
Just the help page? No errors with it?

popminister
09-12-2002, 01:11 AM
No, just the help page!

Is it possible, that Win2K doesn't like the ">"?

dotwebbie
09-12-2002, 01:40 PM
I'll try it out on my *nix and Windows servers and let you know what I find.