PHP Classes

PHP MySQLi Database Backup: Take MySQL database backups generating SQL

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 457 All time: 6,107 This week: 455Up
Version License PHP version Categories
mysqli-backup 1.0.1The PHP License5PHP 5, Databases, Systems administration


This class can take MySQL database backups generating SQL.

It connects to a MySQL database server using MySQLi and extracts the lists of tables and fields.

The class queries the database to extract the table record values and outputs to a file SQL CREATE and INSERT statements to recreate the database.

Picture of Channaveer Hakari
  Performance   Level  
Name: Channaveer Hakari <contact>
Classes: 8 packages by
Country: India India
Age: 33
All time rank: 2439144 in India India
Week rank: 72 Up9 in India India Up
Innovation award
Innovation award
Nominee: 2x


How to Use ?

Unzip the downloaded file.

Copy and paste the folder to www directory.

Change the DB Configuration in the constructor.

Run the project from the browser.

DB Backup will be taken in the specified folder or a default folder will be created and will be logged.

That's it! Happy Coding :)

  Files folder image Files  
File Role Description
Plain text file DatabaseBackup.php Class Class source
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,107
This week:455Up