[Typo3-dev] [OT] Any idea why mysqldump is NOT supported in safe_mode?
Peter Russ
peter.russ at 4many.net
Tue Aug 30 17:52:46 CEST 2005
Matthias Kall wrote:
> Hi Peter,
>
> I had this problem a while ago with my mysqldump in the
> full-backup-Extension. I found out that the problem is not the mysqldump
> itself (it runs fine). The problem is the ">" pointing to the
> destination filename. This character is not allowed in safe mode.
>
> I replaced the original statement:
> exec($this->mysqldump_path.' --opt -u '.TYPO3_db_username.'
> --password='.TYPO3_db_password.' '.TYPO3_db.' >
> '.$tempPath.'/'.$f1_temp.'.sql '.$this->trapError,$error);
>
> with this one:
> exec($this->mysqldump_path.' --opt -u '.TYPO3_db_username.'
> -p'.TYPO3_db_password.' -r '.$tempPath.'/'.$f1_temp.'.sql '.TYPO3_db);
>
> I didn't get the error-trapping to run again though, but besides that it
> works for me.
>
> Greets
>
> Matthias
>
Had no time to test but it sounds reasonable. Buy you a beer and will
suggest you for Nobel Price.
Thanks.
Will tell results as soon as I've tested it.
Regs. Peter
--
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ
More information about the TYPO3-dev
mailing list