RE: [PHP-DB] DB backups from remote server

From: Date: Thu, 11 Oct 2001 01:44:16 +0000
Subject: RE: [PHP-DB] DB backups from remote server
Groups: php.db 
Request: Send a blank email to php-db+get-13213@lists.php.net to get a copy of this message
if those 2 both work, then couldn't you do something like; $dump_file = "table_test.txt"; $outfile = "select * into outfile '$dum_file' fields terminated by ',' from table_name"; $done = mysql_query($outfile); header("Content-disposition: attachment; filename=\"$dump_file\""); readfile($dump_file); <disclaimer> not tested at all - just an idea :P </disclaimer> HTH /beau // -----Original Message----- // From: Dennis Butler [mailto:webmaster@webstew.com] // Sent: Thursday, 11 October 2001 7:41 AM // To: php-db@lists.php.net // Subject: [PHP-DB] DB backups from remote server // // // What is the best way to make backups from a remote host to // my hard drive. I don't have command line access so I want // to use php. // 1) and 2) work on a local database, but not from a remote // host, although I am successfully connected. // mysqldump only seems to work from the command line. Any ideas? // // 1) $outfile = "select * into outfile 'table_test.txt' // fields terminated by ',' from table_name"; // // 2) $backup = "BACKUP TABLE table_name TO 'c:/MySQL/backup' "; // // Thanks in advance, // Dennis // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: // php-list-admin@lists.php.net //

« previous php.db (#13213) next »