PHP Classes

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

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

Author

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: 3412 in Belarus Belarus
Week rank: 192 Up2 in Belarus Belarus Equal

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,178
This week:0
All time:3,217
This week:488Up
User Comments (1)
Very Utility class.
16 years ago (scorninPC)
67%StarStarStarStar