[Typo3-dev] [OT] Any idea why mysqldump is NOT supported in safe_mode?

Peter Russ peter.russ at 4many.net
Wed Aug 31 07:26:04 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
> 

WORKS as it should!
Do you prefer beer or do you enjoy wine?
Thanks.

Regs. Peter.

-- 
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list