Re: Re: back-up mysql database using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/7/07, Sebastian Hopfe <s.hopfe@xxxxxxx> wrote:
>
> Dear Vanessa
>
> You can use the "SELECT ... INTO OUTFILE 'file_name' " with
> mysql_query($vAnf, $dbconn);
> For the syntax you can have a look at
> http://dev.mysql.com/doc/refman/5.0/en/select.html
>
> Should you be allowed to send system-queries to the Server, than you
> should
> have a look to http://dev.mysql.com/doc/refman/5.0/en/backup.html
>
> There are many ways to backup the Database. I thought this will help you.
>
> Regards
> Sebastian
>
> ""Vanessa Vega"" <vanessa@xxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
> news:ED.FC.31692.5F071374@xxxxxxxxxxxxxxx
> > hello there....is there a way to create a back-up database through
> > PHP?...i would like to create a file maybe an sql file that would served
> > as back up of my database. Im using mysql database. I know i could use
> > phpmyadmin to do this but i just like to have a function that would do
> > this without going to phpmyadmin.any help?



With a quick google search of "php mysqldump", this was the first result:
http://www.php-mysql-tutorial.com/perform-mysql-backup-php.php

I personally like mysqldump. It's fast and it saves all the table info....
and you can use PHP to call it.

For more info (parameters, etc) on mysqldump:
http://dev.mysql.com/mysqldump

Good Luck,
~Philip

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux