Re: function for backing up mysql

From: Date: Wed, 14 Apr 2004 13:06:43 +0000
Subject: Re: function for backing up mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183309@lists.php.net to get a copy of this message
From: "Victor Spång Arthursson" <scooterbabe@home.se> > Wonder if anyone knows if there somewhere "out there" are any good > functions that streams out data from mysql as a sql-file, like > phpmyadmin does? > > The best would be one which I told which database and which tables to > dump, and which directly stared streaming the data… Look on phpclasses.org. I saw a class listed in their last email notice that did what you're looking for. I'm sure there are a couple of options there. The easy way to do it is to just make an exec() or system() call to mysqldump (it comes with mysql). Just call the program and capture the output. It's the easiest way. ---John Holmes...

« previous php.general (#183309) next »