Re: function for backing up mysql

From: Date: Wed, 14 Apr 2004 09:55:13 +0000
Subject: Re: function for backing up mysql
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-183298@lists.php.net to get a copy of this message
2004-04-14 kl. 11.26 skrev Burhan Khalid:
Just redirect the output from mysqldump. mysqldump -u username -ppassword database > dump.sql and then send that dump.sql file. Or, you can just read the output from the mysqldump command directly, using output buffering to make sure your script doesn't just stall (if its a big database).
But… the database is on a hotel to which I have no remote access to mysql… My client want to be able to click a link and get a "backup file" in return… Is it possible to redirect the output from mysqldump using only php, and with no command line access? Sincerely Victor

« previous php.general (#183298) next »