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

Matthias Kall matthias.kall at web.de
Mon Aug 29 19:49:47 CEST 2005


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

-- 
_______________________________________
Matthias Kall
matthias.kall at web.de




More information about the TYPO3-dev mailing list