Bug #11724 | mysql_dump don't run from PHP | ||
---|---|---|---|
Submitted: | 4 Jul 2005 14:32 | Modified: | 4 Jul 2005 18:43 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 4.1.7 | OS: | Windows (Windows XP SP2) |
Assigned to: | CPU Architecture: | Any |
[4 Jul 2005 14:32]
[ name withheld ]
[4 Jul 2005 18:42]
Jorge del Conde
I was unable to reproduce this bug. Using your script, I received the following: jorge-jorge/tt> php t.php mysqldump: option '-r' requires an argument sh: line 2: ./test.xml: Permission denied 126 I then changed the line: $this->cmd = "mysqldump -q -X -u {$user} -p{$pass} {$name} -r {$path}{$name}.xml"; to: $this->cmd = "mysqldump -q -X -u $user -p$pass $name -r $path$name.xml"; and a file called test.xml (that contained the dump) was generated.
[4 Jul 2005 18:43]
Jorge del Conde
jorge-jorge/tt> ls ./ ../ t.php jorge-jorge/tt> php t.php Enter password: jorge-jorge/tt> ls ./ ../ test.xml t.php jorge-jorge/tt>