PHP Classes

MySQL PHP Dump: Generate MySQL backup of files with SQL

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 289 All time: 7,505 This week: 206Up
Version License PHP version Categories
mysql-php-dump 1.0GNU General Publi...3.0PHP 5, Databases, Systems administration


This class can generate MySQL backup of files with SQL statements that can restore the database.

It can traverse the list of tables of a given MySQL database and generates SQL statements that can recreate the tables and the values of the respective records.

The generated SQL INSERT statements can insert up to 200 records at once.

The generated SQL statements of a table are stored in files, one for each table. The files are stored in a backup directory with a name that contains the current date.

The resulting directory and the contained files are stored in a ZIP file to take less disk space.

The class can also delete backup zip files older than 30 days.

Picture of Rey Ramos
Name: Rey Ramos <contact>
Classes: 2 packages by
Country: United States United States
Age: 42
All time rank: 2601357 in United States United States
Week rank: 249 Up33 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file mysql_php_dump Class mysql_php_dump

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,505
This week:206Up