Re: backing up a database
| From: | David Robley | Date: | Mon, 27 Nov 2006 07:21:02 +0000 |
| Subject: | Re: backing up a database | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245168@lists.php.net to get a copy of this message | ||
Sumeet wrote:
> Brad Fuller wrote:
>
>> $command = "mysqldump -u $dbuser -p$dbpass $dbname | gzip >
>> $backupFile";
>>
>> system($command);
>>
>>
>
> what if system() has been disabled on the server?
>
SELECT .... INTO OUTFILE 'file_name' export_options seems a useful
alternative.
Cheers
--
David Robley
"I haven't caught a fish all day!" Tom said, without debate.
Today is Sweetmorn, the 39th day of The Aftermath in the YOLD 3172.