PHP Classes

Easy MySQL Dump: Dump the structure and data of a MySQL database

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,178 All time: 3,215 This week: 488Up
Version License PHP version Categories
easymsqldumper 1.0Freeware4.3Databases


This class be used to dump the structure and data of a MySQL database to a backup file.

It traverses the list of tables of a given MySQL database and generates the SQL statements that would be necessary recreate all the tables and the data in their records.

The class may optionally not generate SQL statements for creating the tables or inserting the table records.

The generated SQL statements can be returned as a single text string or served for download directly or compressed in the gzip format.

Based on class of Marcus Vinícius, thanks for original code, just made some updates to make class more usable and customizable, fixed compatibility with MySql5, and fixed "CURRENT_TIMESTAMP" little bug.

Picture of Sergey Shilko
Name: Sergey Shilko <contact>
Classes: 4 packages by
Country: Belarus Belarus
Age: 39
All time rank: 3402 in Belarus Belarus
Week rank: 200 Up2 in Belarus Belarus Equal

  Files folder image Files  
File Role Description
Accessible without login Plain text file author_origin Lic. Thanks to
Plain text file class_mysqldump.php Class main class , all in one
Accessible without login Plain text file example.php Example Example file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,215
This week:488Up
User Comments (1)
Very Utility class.
16 years ago (scorninPC)