Ask a Question related to PHP Programming, Design and Development.
-
trytertqwr #1
Full MySQL Database Backup
Hello again guys.
Can someone give me an example / script of how to perform a full MySQL backup in PHP? I've done a Google search and a lot of tutorials, etc look way more complicated than I think they should be. I just want someone to show me how I can get the same results if I were doing an export / dump in PHPMyAdmin.
In the end, I will have the script send the data / file to the browser as a download, but I know how to do that. Just show me how to do it using all those mysql functions.
Thanks in advanced!
Banned
- Join Date
- Aug 2011
- Posts
- 23
-
How to backup and recovery MySQL database cluster using InnoDB table?
Hi, How to backup and recovery MySQL database cluster using InnoDB table? I have searched in the internet but not found any solution. Can you... -
MySQL Database not retrieving the full database
Hi, I am using MySQL and PHP for my repository. It has 500+ records. till now it was displayiing all records in the database, but since from one... -
php Mysql Backup
Hi there I am just trying to find out if there is a simple way for a user to back a mysql database using a php coded link. I am using a... -
[PHP] Backup Database
you can write a PHP script to backup the DB to a SQL file and run that script using crond at scheduled time or periodiacally as you define in cron... -
Backup MySQL DB
On Tue, 15 Jul 2003 10:55:07 +0000, Frank wrote: for any size DB why not dump the database to a file using mysqldump or use mysql-hotcopy? ... -
Ravish #2
Re: Full MySQL Database Backup
You can backup a MySQL database using the following PHP code:
PHP Code:$backupFile = $databasename . '.gz';
$command = "mysqldump --opt -h $databasehost -u $databaseuser -p $databasepass $databasename | gzip > $backupFile";
system($command);



Reply With Quote



